source: frontend/node_modules/workbox-recipes/pageCache.d.ts

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 1.0 KB
RevLine 
[9af201e]1import { RouteMatchCallback, WorkboxPlugin } from 'workbox-core/types.js';
2import './_version.js';
3export interface PageCacheOptions {
4 cacheName?: string;
5 matchCallback?: RouteMatchCallback;
6 networkTimeoutSeconds?: number;
7 plugins?: Array<WorkboxPlugin>;
8 warmCache?: Array<string>;
9}
10/**
11 * An implementation of a page caching recipe with a network timeout
12 *
13 * @memberof workbox-recipes
14 *
15 * @param {Object} [options]
16 * @param {string} [options.cacheName] Name for cache. Defaults to pages
17 * @param {RouteMatchCallback} [options.matchCallback] Workbox callback function to call to match to. Defaults to request.mode === 'navigate';
18 * @param {number} [options.networkTimoutSeconds] Maximum amount of time, in seconds, to wait on the network before falling back to cache. Defaults to 3
19 * @param {WorkboxPlugin[]} [options.plugins] Additional plugins to use for this recipe
20 * @param {string[]} [options.warmCache] Paths to call to use to warm this cache
21 */
22declare function pageCache(options?: PageCacheOptions): void;
23export { pageCache };
Note: See TracBrowser for help on using the repository browser.