Offline

Recipes

Offline Status

This basic recipe illustrates caching critical resources for offline use and then notifying the user that they may go offline and enjoy the same experience.

Offline Fallback

This recipe shows how to serve content from the cache when the user is offline.

JSON Cache

This recipe illustrates fetching a JSON file during service worker installation and adding all resources to cache. This recipe also immediately claims the service worker for faster activation.


Has it been useful?

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