The Work Services Cache API supports caching of all CDN resources, and you can use the cache API , which provides a mechanism to store pairs of Request / Response objects that are cached as part of the ServiceWorker life cycle.
Infact sw-precache and sw-toolbox are the most popular Service worker caching libraries, which provide common caching patterns and an expressive approach for Runtime Caching and Precaching for static resources.
The additional methods described in the offline-cookbook provide a reliable, stand-alone experience with reasonable reserves.
source share