I hadn’t considered the fact that if you’re fingerprinting your assets (e.g. style.987987090897.css) to take advantage of browser cache, you’ll need to update your Service Worker every time you do that. But I guess you’ve got a build step anyway, so it can be updated in both places:
… we used a NodeJS module called Stacify to automatically create new version numbers in all the places when a file is changed.
Direct Link to Article — Permalink
We built a PWA from scratch – This is what we learned is a post from CSS-Tricks