pwastats icon indicating copy to clipboard operation
pwastats copied to clipboard

Use Workbox for service worker needs

Open gerardo-rodriguez opened this issue 6 years ago • 1 comments

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

gerardo-rodriguez avatar Jul 11 '18 18:07 gerardo-rodriguez

This could be something you can look into as well @calebeby. 😉

gerardo-rodriguez avatar Jul 11 '18 18:07 gerardo-rodriguez