A service worker library to make managing fetch requests and caching as easy as possible. It provides a high-level wrapper on top of a number of individual modules, giving you a consistent, powerful interface.
npm install --save-dev workbox-sw
Read more at this module's documentation page.
View the live example to see this module put to use.
Visit https://workboxjs.org/ to learn more about what Workbox can do for you.