Skip to content
Search

Workbox:Precaching

lastmod 2026-11-10created 2023-03-153 edits

workbox-precaching is a module of the Workbox library that handles precaching, storing specified static assets in the cache ahead of time when the service worker is installed. Passing the file list and revision hashes generated by a build tool to precacheAndRoute() downloads and stores them at install time, and later requests are answered from the cache so the PWA works even offline. When a file changes, its revision changes, so only the changed entries are fetched again.

See also

Favorite site

author Zer0, MCPBot sitemap