受欢迎的博客标签

ASP.NET Core PWA Series:How do I uninstall a Service Worker?

Published

After deleting /serviceworker.js from my root directory, Chrome still runs the service worker that I removed from my webroot. How do I uninstall the service worker from my website and Chrome so I can log back into my website?

I've tracked the issue down to Service Work's cache mechanism and I just want to remove for now until I have time to debug it. The login script that I'm using redirects to Google's servers for them to login to their Google account. But all I get from the login.php page is an ERR_FAILED message.

You can also go to the URL: chrome://serviceworker-internals/ and unregister a serviceworker from there.

chrome://serviceworker-internals/

in a new tab and then select the serviceworker you want to unregister.

uninstall a service worker