Serve a Web App in Offline Mode

Learn how to make a web app available when the user is offline.

Caching and retrieving the app shell

Perform the following steps to use the pre-cached app shell to load our app offline:

  • Cache the static asset in the install event while online. Ensure to cache the project’s root HTML page like index.html. If this HTML page is not cached, other cached items like scripts and style sheets will not be used because they won’t be requested.

Get hands-on with 1200+ tech skills courses.