UNPKG

1.52 kBJavaScriptView Raw
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*/
8import { addPlugins } from './addPlugins.js';
9import { addRoute } from './addRoute.js';
10import { cleanupOutdatedCaches } from './cleanupOutdatedCaches.js';
11import { createHandlerBoundToURL } from './createHandlerBoundToURL.js';
12import { getCacheKeyForURL } from './getCacheKeyForURL.js';
13import { matchPrecache } from './matchPrecache.js';
14import { precache } from './precache.js';
15import { precacheAndRoute } from './precacheAndRoute.js';
16import { PrecacheController } from './PrecacheController.js';
17import { PrecacheRoute } from './PrecacheRoute.js';
18import { PrecacheStrategy } from './PrecacheStrategy.js';
19import { PrecacheFallbackPlugin } from './PrecacheFallbackPlugin.js';
20import './_version.js';
21/**
22 * Most consumers of this module will want to use the
23 * {@link workbox-precaching.precacheAndRoute}
24 * method to add assets to the cache and respond to network requests with these
25 * cached assets.
26 *
27 * If you require more control over caching and routing, you can use the
28 * {@link workbox-precaching.PrecacheController}
29 * interface.
30 *
31 * @module workbox-precaching
32 */
33export { addPlugins, addRoute, cleanupOutdatedCaches, createHandlerBoundToURL, getCacheKeyForURL, matchPrecache, precache, precacheAndRoute, PrecacheController, PrecacheRoute, PrecacheStrategy, PrecacheFallbackPlugin, };
34export * from './_types.js';