index.ts 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. Copyright 2018 Google LLC
  3. Use of this source code is governed by an MIT-style
  4. license that can be found in the LICENSE file or at
  5. https://opensource.org/licenses/MIT.
  6. */
  7. import {addPlugins} from './addPlugins.js';
  8. import {addRoute} from './addRoute.js';
  9. import {cleanupOutdatedCaches} from './cleanupOutdatedCaches.js';
  10. import {createHandler} from './createHandler.js';
  11. import {createHandlerBoundToURL} from './createHandlerBoundToURL.js';
  12. import {getCacheKeyForURL} from './getCacheKeyForURL.js';
  13. import {matchPrecache} from './matchPrecache.js';
  14. import {precache} from './precache.js';
  15. import {precacheAndRoute} from './precacheAndRoute.js';
  16. import {PrecacheController} from './PrecacheController.js';
  17. import './_version.js';
  18. /**
  19. * Most consumers of this module will want to use the
  20. * [precacheAndRoute()]{@link module:workbox-precaching.precacheAndRoute}
  21. * method to add assets to the Cache and respond to network requests with these
  22. * cached assets.
  23. *
  24. * If you require finer grained control, you can use the
  25. * [PrecacheController]{@link module:workbox-precaching.PrecacheController}
  26. * to determine when performed.
  27. *
  28. * @module workbox-precaching
  29. */
  30. export {
  31. addPlugins,
  32. addRoute,
  33. cleanupOutdatedCaches,
  34. createHandler,
  35. createHandlerBoundToURL,
  36. getCacheKeyForURL,
  37. matchPrecache,
  38. precache,
  39. precacheAndRoute,
  40. PrecacheController,
  41. };