index.js 1.5 KB

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