Search⌘ K
AI Features

The Need for Caching

Explore why caching is crucial for progressive web apps to function offline and provide smooth performance. Understand typical scenarios for caching, such as apps used as tools, content downloading, and speeding up load times. Learn how caching core assets helps PWAs feel native and maintain usability even without an internet connection.

Implementing caching in the service worker of a progressive web app makes that app offline capable. Before knowing how caching works, we should understand why we need caching.

Why do we need caching?

Before delving further, we should ask the following questions:

  • Where do we want to use caching?
  • What are its use cases?
  • What do users do on an app if they are offline?

We need caching because we often experience being offline. Here are some situations in which ...