Skip to content

PrecacheOptions ​

Interface @vite-pwa/workbox-swkit/precaching

Properties ​

PropertyTypeDefaultDescription
cleanURLs?boolean
directoryIndex?string
ignoreURLParametersMatching?RegExp[]
parallel?{ concurrency: number; enabled: boolean }{ enabled: false, concurrency: 5 }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.

Limiting concurrency prevents net::ERR_INSUFFICIENT_RESOURCES errors in Chrome and reduces bandwidth impact on the main app during service worker installation.
urlManipulation?urlManipulation

Released under the MIT License.