index.js 1.3 KB

12345678910111213141516171819202122232425262728293031
  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 { addPlugins, addRoute, cleanupOutdatedCaches, createHandler, createHandlerBoundToURL, getCacheKeyForURL, matchPrecache, precache, precacheAndRoute, PrecacheController, };