Workbox | Google Developers
Below are a few examples of the Workbox API demonstrating some of the common approaches developers take in their service workers. Wish you could rely on Google Fonts being available offline after the user has visited your site? Add a quick rule to serve them from the cache.
https://developers.google.com/web/tools/workbox