ServiceWorkerCacheClearedInfo#
Interface ServiceWorkerCacheClearedInfoExperimental
interface ServiceWorkerCacheClearedInfo {
clearedCacheCount: number;
clearedEntryCount: number;
clearedTransferSize: number;
reason: ServiceWorkerCacheClearedReason;
}
clearedCacheCount: number;
clearedEntryCount: number;
clearedTransferSize: number;
reason: ServiceWorkerCacheClearedReason;
}
Index
Properties
Experimentalcleared Cache Count
clearedCacheCount: number
Number of caches that were removed.
Experimentalcleared Entry Count
clearedEntryCount: number
Number of cached entries that were removed (best-effort).
Experimentalcleared Transfer Size
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.
Experimentalreason
Why the clear happened.
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.
See
ServiceWorkerCacheClearedEvent