createCacheKey.d.ts 445 B

1234567891011121314151617
  1. import { PrecacheEntry } from '../_types.js';
  2. import '../_version.js';
  3. interface CacheKey {
  4. cacheKey: string;
  5. url: string;
  6. }
  7. /**
  8. * Converts a manifest entry into a versioned URL suitable for precaching.
  9. *
  10. * @param {Object|string} entry
  11. * @return {string} A URL with versioning info.
  12. *
  13. * @private
  14. * @memberof module:workbox-precaching
  15. */
  16. export declare function createCacheKey(entry: PrecacheEntry | string): CacheKey;
  17. export {};