Google's Workbox library has matured quite a lot. We should refactor the service worker to use the Workbox library to generate the service worker instead. 😉
Why Workbox?
Workbox is a library that bakes in a set of best practices and removes the boilerplate every developer writes when working with service workers.
Precaching
Runtime caching
Strategies
Request routing
Background sync
Helpful debugging
Greater flexibility and feature set than sw-precache and sw-toolbox
Google's Workbox library has matured quite a lot. We should refactor the service worker to use the Workbox library to generate the service worker instead. 😉
https://developers.google.com/web/tools/workbox/