From Dev.to
Versioned service worker caches: install new, fetch current, clean up narrowly
A service worker update is safer when cache ownership is explicit. Rather than reusing one permanent cache name, assign each worker revision its own cache generation, such as an application prefix plu...
