* Lookup all resources currently stored in the cache which have no associated hash.
()
| 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. |
nothing calls this directly
no test coverage detected
searching dependent graphs…