MCPcopy
hub / github.com/angular/angular / deleteAllCaches

Method deleteAllCaches

packages/service-worker/worker/src/driver.ts:948–951  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

946 }
947
948 private async deleteAllCaches(): Promise<void> {
949 const cacheNames = await this.adapter.caches.keys();
950 await Promise.all(cacheNames.map((name) => this.adapter.caches.delete(name)));
951 }
952
953 /**
954 * Schedule the SW's attempt to reach a fully prefetched state for the given AppVersion

Callers 2

fetchLatestManifestMethod · 0.95
setupUpdateMethod · 0.95

Calls 4

mapMethod · 0.80
keysMethod · 0.65
allMethod · 0.45
deleteMethod · 0.45

Tested by

no test coverage detected