index.d.ts 1.2 KB

123456789101112131415161718192021222324
  1. import { addPlugins } from './addPlugins.js';
  2. import { addRoute } from './addRoute.js';
  3. import { cleanupOutdatedCaches } from './cleanupOutdatedCaches.js';
  4. import { createHandler } from './createHandler.js';
  5. import { createHandlerBoundToURL } from './createHandlerBoundToURL.js';
  6. import { getCacheKeyForURL } from './getCacheKeyForURL.js';
  7. import { matchPrecache } from './matchPrecache.js';
  8. import { precache } from './precache.js';
  9. import { precacheAndRoute } from './precacheAndRoute.js';
  10. import { PrecacheController } from './PrecacheController.js';
  11. import './_version.js';
  12. /**
  13. * Most consumers of this module will want to use the
  14. * [precacheAndRoute()]{@link module:workbox-precaching.precacheAndRoute}
  15. * method to add assets to the Cache and respond to network requests with these
  16. * cached assets.
  17. *
  18. * If you require finer grained control, you can use the
  19. * [PrecacheController]{@link module:workbox-precaching.PrecacheController}
  20. * to determine when performed.
  21. *
  22. * @module workbox-precaching
  23. */
  24. export { addPlugins, addRoute, cleanupOutdatedCaches, createHandler, createHandlerBoundToURL, getCacheKeyForURL, matchPrecache, precache, precacheAndRoute, PrecacheController, };