UNPKG

807 BTypeScriptView Raw
1import './_version.js';
2/**
3 * Takes in a URL, and returns the corresponding URL that could be used to
4 * lookup the entry in the precache.
5 *
6 * If a relative URL is provided, the location of the service worker file will
7 * be used as the base.
8 *
9 * For precached entries without revision information, the cache key will be the
10 * same as the original URL.
11 *
12 * For precached entries with revision information, the cache key will be the
13 * original URL with the addition of a query parameter used for keeping track of
14 * the revision info.
15 *
16 * @param {string} url The URL whose cache key to look up.
17 * @return {string} The cache key that corresponds to that URL.
18 *
19 * @memberof workbox-precaching
20 */
21declare function getCacheKeyForURL(url: string): string | undefined;
22export { getCacheKeyForURL };