MCPcopy Index your code
hub / github.com/angular/angular / unhashedResources

Function unhashedResources

packages/service-worker/worker/src/assets.ts:285–295  ·  view source on GitHub ↗

* Lookup all resources currently stored in the cache which have no associated hash.

()

Source from the content-addressed store, hash-verified

283 * Lookup all resources currently stored in the cache which have no associated hash.
284 */
285 async unhashedResources(): Promise<NormalizedUrl[]> {
286 const cache = await this.cache;
287 // Start with the set of all cached requests.
288 return (
289 (await cache.keys())
290 // Normalize their URLs.
291 .map((request) => this.adapter.normalizeUrl(request.url))
292 // Exclude the URLs which have hashes.
293 .filter((url) => !this.hashes.has(url))
294 );
295 }
296
297 /**
298 * Fetch the given resource from the network, and cache it if able.

Callers

nothing calls this directly

Calls 5

mapMethod · 0.80
normalizeUrlMethod · 0.80
keysMethod · 0.65
hasMethod · 0.65
filterMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…