I'm just curious to understand if anyone is using service workers for their web app in production and if so, what use cases does it solve particularly well.<p>More specifically, in terms of caching, apart from working offline how is it different from browser/CDN cache? What if your service worker itself is cached for sometime and you want to rollout an update? What are the best practices? How has your experience been maintaining service worker on a production app? What about security?<p>I know notifications can be done, server push with HTTP/2 etc. But which kind of web apps can make the best use of service workers and which ones shouldn't implement it?
I'm currently writing a PWA and using <a href="https://www.npmjs.com/package/sw-precache-webpack-plugin" rel="nofollow">https://www.npmjs.com/package/sw-precache-webpack-plugin</a> to generate the service worker on each build.
It's nice because it's a whole chunk of what would otherwise be application logic that I now give zero thought too.
I use service workers on <a href="http://svgnest.com" rel="nofollow">http://svgnest.com</a><p>no idea about caching, I mainly use it max out all the cores for the cpu bound algo.<p>its probably good for browser based cryptocurrency mining too.