precaching

Downloading and caching a list of essential files during a service worker's install step, so the app can load offline from the start.

In more detail

The list of files is usually generated at build time and versioned with the service worker. Precache the app shell, such as HTML, CSS, scripts and icons, and cache other responses at runtime as they are requested.

Related terms

Taught in

References