AD FS sign-in page doesn't show up after logout if Service Workers are enabled

186 views Asked by At

I have a web application built in ASP.Net core 2.2 with React js as the client app. This web is using service worker (provided by CRA- create-react-app) to cache my application shell (static resources like JS, CSS, etc). Also, AD FS (Active Directory Federated Service) is integrated to the ASP.Net core app to authenticate my users.

Now the problem statement: When I navigate to my home url (e.g. https://directory-mysite.com/) the AD FS sign-in page doesn't show up after the user has logged out. When I do CTRL+F5 then it works. This is happening due to the service worker caching my home url and not bypassing the request to the network (my server).

Question: I want to know if there is any way I can fix this problem. Disabling the service worker is not the option and editing seems to be a challenge since the app is in the CRA shell.

0

There are 0 answers