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

Method getIntegrityForCacheKey

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

* @param {string} url A cache key whose SRI you want to look up. * @return {string} The subresource integrity associated with the cache key, * or undefined if it's not set.

(cacheKey)

Source from the content-addressed store, hash-verified

4052 * or undefined if it's not set.
4053 */
4054 getIntegrityForCacheKey(cacheKey) {
4055 return this._cacheKeysToIntegrities.get(cacheKey);
4056 }
4057 /**
4058 * This acts as a drop-in replacement for
4059 * [`cache.match()`](https://developer.mozilla.org/en-US/docs/Web/API/Cache/match)

Callers 1

matchMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected