Skip to content

@vite-pwa/workbox-swkit/precaching ​

Package

Declaration: @vite-pwa/workbox-swkit/precaching

Class Summary ​

TypeDescription
PrecacheController Performs efficient precaching of assets.
PrecacheFallbackPluginPrecacheFallbackPlugin allows you to specify an "offline fallback" response to be used when a given strategy is unable to generate a response.
PrecacheRoute A subclass of workbox-routing.Route that takes a workbox-precaching.PrecacheController instance and uses it to match incoming requests and handle fetching responses from the precache.
PrecacheStrategy A workbox-strategies.Strategy implementation specifically designed to work with workbox-precaching.PrecacheController to both cache and fetch precached assets.

Function Summary ​

NameDescription
addPlugins
addRoute
cleanupOutdatedCaches
createHandlerBoundToURL
getCacheKeyForURL
matchPrecache
precache
precacheAndRoute

Interface Summary ​

TypeDescription
CleanupResult
InstallResult
Parallel Controls parallel precaching of assets during service worker installation. When enabled, assets are fetched concurrently up to concurrency at a time instead of one by one.
PrecacheEntry
PrecacheOptions
PrecacheRouteOptions

Type Alias Summary ​

NameDescription
urlManipulation

Released under the MIT License.