ServiceWorkerCacheClearedInfo#

Interface ServiceWorkerCacheClearedInfoExperimental

Summary of a service worker cache-clearing operation.

The entry count and cleared bytes are best-effort values taken from the service worker's maintained counters, so they may drift slightly from the exact figures.

interface ServiceWorkerCacheClearedInfo {
    clearedCacheCount: number;
    clearedEntryCount: number;
    clearedTransferSize: number;
    reason: ServiceWorkerCacheClearedReason;
}
Index

Properties

clearedCacheCount: number

Number of caches that were removed.

clearedEntryCount: number

Number of cached entries that were removed (best-effort).

clearedTransferSize: number

Approximate transfer size, in bytes, of the removed cached responses, summed from their content-length (what crossed the network) rather than the on-disk footprint. Best-effort.

Why the clear happened.