cacheNames.d.ts 826 B

123456789101112131415161718192021222324
  1. import './_version.js';
  2. /**
  3. * Get the current cache names and prefix/suffix used by Workbox.
  4. *
  5. * `cacheNames.precache` is used for precached assets,
  6. * `cacheNames.googleAnalytics` is used by `workbox-google-analytics` to
  7. * store `analytics.js`, and `cacheNames.runtime` is used for everything else.
  8. *
  9. * `cacheNames.prefix` can be used to retrieve just the current prefix value.
  10. * `cacheNames.suffix` can be used to retrieve just the current suffix value.
  11. *
  12. * @return {Object} An object with `precache`, `runtime`, `prefix`, and
  13. * `googleAnalytics` properties.
  14. *
  15. * @memberof module:workbox-core
  16. */
  17. declare const cacheNames: {
  18. readonly googleAnalytics: string;
  19. readonly precache: string;
  20. readonly prefix: string;
  21. readonly runtime: string;
  22. readonly suffix: string;
  23. };
  24. export { cacheNames };