|
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 |
|
|---|
| 9 | import {CacheFirst} from './CacheFirst.js';
|
|---|
| 10 | import {CacheOnly} from './CacheOnly.js';
|
|---|
| 11 | import {NetworkFirst, NetworkFirstOptions} from './NetworkFirst.js';
|
|---|
| 12 | import {NetworkOnly, NetworkOnlyOptions} from './NetworkOnly.js';
|
|---|
| 13 | import {StaleWhileRevalidate} from './StaleWhileRevalidate.js';
|
|---|
| 14 | import {Strategy, StrategyOptions} from './Strategy.js';
|
|---|
| 15 | import {StrategyHandler} from './StrategyHandler.js';
|
|---|
| 16 | import './_version.js';
|
|---|
| 17 |
|
|---|
| 18 | // See https://github.com/GoogleChrome/workbox/issues/2946
|
|---|
| 19 | declare 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 |
|
|---|
| 33 | export {
|
|---|
| 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.