pwastats
pwastats copied to clipboard
Use Workbox for service worker needs
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/
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
This could be something you can look into as well @calebeby. 😉