* 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)
| 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, |
no outgoing calls
no test coverage detected