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

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

Fix frontend appearance

  • Property mode set to 100644
File size: 1.1 KB
Line 
1import { RouteMatchCallback, WorkboxPlugin } from 'workbox-core/types.js';
2import './_version.js';
3export interface StaticResourceOptions {
4 cacheName?: string;
5 matchCallback?: RouteMatchCallback;
6 plugins?: Array<WorkboxPlugin>;
7 warmCache?: Array<string>;
8}
9/**
10 * An implementation of the [CSS and JavaScript files recipe]{@link https://developers.google.com/web/tools/workbox/guides/common-recipes#cache_css_and_javascript_files}
11 *
12 * @memberof workbox-recipes
13 *
14 * @param {Object} [options]
15 * @param {string} [options.cacheName] Name for cache. Defaults to static-resources
16 * @param {RouteMatchCallback} [options.matchCallback] Workbox callback function to call to match to. Defaults to request.destination === 'style' || request.destination === 'script' || request.destination === 'worker';
17 * @param {WorkboxPlugin[]} [options.plugins] Additional plugins to use for this recipe
18 * @param {string[]} [options.warmCache] Paths to call to use to warm this cache
19 */
20declare function staticResourceCache(options?: StaticResourceOptions): void;
21export { staticResourceCache };
Note: See TracBrowser for help on using the repository browser.