This removes all the service worker code and replaces it with a minimal implementation to unregister itself.
We're doing this because despite trying to unregister the service worker form applications, it's still alive for some browsers (a couple of hundred users).
The internet recommends trying to get the SW to unregister itself and ensure the CDN cache for /__sw.js is purged.
This removes all the service worker code and replaces it with a minimal implementation to unregister itself.
We're doing this because despite trying to unregister the service worker form applications, it's still alive for some browsers (a couple of hundred users).
The internet recommends trying to get the SW to unregister itself and ensure the CDN cache for /__sw.js is purged.