I have a website implemented in PHP that also has a service worker, i.e. www.domain.com/sw.js registered.
My intention is to rewrite the site entirely with NodeJS and what to rewrite the service worker with another file name, i.e www.domain.com/service-worker.js.
My doubts are:
- What happens if in the new implementation I stop serving the
sw.jsfile? Does it makes the old service worker to be uninstalled and removed ? If not, - How can I unsinstall the old service worker
sw.jsfrom the new oneservice-worker.js?