English
precacheAndRoute
Function @vite-pwa/workbox-swkit/precachingts
precacheAndRoute(entries: string | PrecacheEntry[], options?: PrecacheOptions): voidThis method will add entries to the precache list and add a route to respond to fetch events.
This is a convenience method that will call workbox-precaching.precache and workbox-precaching.addRoute in a single call.
Parameters
entries– Array of entries to precache.options– See the workbox-precaching.PrecacheRoute options.