There are many step-by-step guides on using ngsw-worker.js
to install ServiceWorker; yet there is not even one step-by-step guide on using safety-worker.js
to uninstall ServiceWorker.
safety-worker.js is mentioned in https://angular.io/guide/service-worker-devops#safety-worker
How do I use safety-worker.js to uninstall service worker? I want to uninstall a previously installed ngsw-worker.js.
You just have to rename safety-worker.js
to ngsw-worker.js
on the production and keep it there for a while (say, until the majority of the app users get this update)