MCPcopy Create free account
hub / github.com/danja/dogalog / getCacheKeyForURL

Method getCacheKeyForURL

dev-dist/workbox-ca84f546.js:4045–4048  ·  view source on GitHub ↗

* Returns the cache key used for storing a given URL. If that URL is * unversioned, like `/index.html', then the cache key will be the original * URL with a search parameter appended to it. * * @param {string} url A URL whose cache key you want to look up. * @retur

(url)

Source from the content-addressed store, hash-verified

4043 * for the original URL, or undefined if that URL isn't precached.
4044 */
4045 getCacheKeyForURL(url) {
4046 const urlObject = new URL(url, location.href);
4047 return this._urlsToCacheKeys.get(urlObject.href);
4048 }
4049 /**
4050 * @param {string} url A cache key whose SRI you want to look up.
4051 * @return {string} The subresource integrity associated with the cache key,

Callers 3

matchPrecacheMethod · 0.95
constructorMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected