Search⌘ K

The Types of Caching

Discover the different caching methods used in progressive web applications including pre-caching static assets, dynamic caching of user-requested content, and cache on demand that lets users save content for offline use. Understand how these techniques enhance offline access and app responsiveness.

In applications, there are generally two types of content:

  • Static assets: These include HTML pages, stylesheets, JS scripts, images, and fonts. Requests for these assets are made automatically by the browser to render our app.
  • Dynamic content: This is what we fetch ourselves by making requests to APIs. This is the content that puts life into the static assets. Mainly, this is the data created or consumed by the app users.

App shell

An app shell is the app’s core static part that doesn’t change ...