source: frontend/node_modules/workbox-strategies/src/index.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.2 KB
Line 
1/*
2 Copyright 2018 Google LLC
3
4 Use of this source code is governed by an MIT-style
5 license that can be found in the LICENSE file or at
6 https://opensource.org/licenses/MIT.
7*/
8
9import {CacheFirst} from './CacheFirst.js';
10import {CacheOnly} from './CacheOnly.js';
11import {NetworkFirst, NetworkFirstOptions} from './NetworkFirst.js';
12import {NetworkOnly, NetworkOnlyOptions} from './NetworkOnly.js';
13import {StaleWhileRevalidate} from './StaleWhileRevalidate.js';
14import {Strategy, StrategyOptions} from './Strategy.js';
15import {StrategyHandler} from './StrategyHandler.js';
16import './_version.js';
17
18// See https://github.com/GoogleChrome/workbox/issues/2946
19declare global {
20 interface FetchEvent {
21 // See https://github.com/GoogleChrome/workbox/issues/2974
22 readonly preloadResponse: Promise<any>;
23 }
24}
25
26/**
27 * There are common caching strategies that most service workers will need
28 * and use. This module provides simple implementations of these strategies.
29 *
30 * @module workbox-strategies
31 */
32
33export {
34 CacheFirst,
35 CacheOnly,
36 NetworkFirst,
37 NetworkFirstOptions,
38 NetworkOnly,
39 NetworkOnlyOptions,
40 StaleWhileRevalidate,
41 Strategy,
42 StrategyHandler,
43 StrategyOptions,
44};
Note: See TracBrowser for help on using the repository browser.