serwist
Version:
A Swiss Army knife for service workers.
20 lines • 714 B
TypeScript
import type { PrecacheEntry } from "../types.js";
/**
* Adds items to the precache list, removing any duplicates and
* stores the files in the precache cache when the service
* worker installs.
*
* This method can be called multiple times.
*
* Please note: This method **will not** serve any of the cached files for you.
* It only precaches files. To respond to a network request you call
* {@linkcode addRoute}.
*
* If you have a single array of files to precache, you can just call
* {@linkcode precacheAndRoute}.
*
* @param entries Array of entries to precache.
* @deprecated
*/
export declare const precache: (entries: (PrecacheEntry | string)[]) => void;
//# sourceMappingURL=precache.d.ts.map