Cache only

The recipe provides a service worker always answering from cache on fetch events.



Use Case

For a given version of your site, you have static content that never changes such as the shell around the content.


Add static content during the installation of the service worker and use the cache to retrieve it whether the network is available or not.


Caching strategies

Has it been useful?

Tell us what you think of this recipe by leaving a comment!