Self-destroying ServiceWorker

Is it easy to remove ServiceWorker from a website?

Code snippet from: https://stackoverflow.com/questions/33704791/how-do-i-uninstall-a-service-worker

This is might be a frustrating experience for your users

Unregistering ServiceWorker properly

A hand holding self-destruct detonator

--

--

--

JavaScript, Front-end and Progressive Web Apps developer, Author of `offline-plugin` for webpack: https://github.com/NekR/offline-plugin

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Arthur Stolyar

Arthur Stolyar

JavaScript, Front-end and Progressive Web Apps developer, Author of `offline-plugin` for webpack: https://github.com/NekR/offline-plugin

More from Medium

Grouping Object Values by Key for JS Arrays

React JS:18 Whats new about it?

What is React-Redux and Why it is used?

[JS] Is a Promise Async?