ServiceWorkerConfig#
Interface ServiceWorkerConfigExperimental
cacheExpirationMs: number;
cachingEnabled: boolean;
evictionEnabled: boolean;
logLevel: LogLevel;
quotaLowerFraction: number;
quotaUpperFraction: number;
}
Properties
Experimentalcache Expiration Ms
Maximum age of a cache before it is evicted, in milliseconds.
Experimentalcaching Enabled
Whether the service worker is currently caching delivery-service responses locally. When false, requests bypass the cache entirely (no reads, no writes).
Experimentaleviction Enabled
Whether quota-based auto-cleanup is enabled. When storage usage exceeds the upper limit, least-recently-read caches are evicted until usage drops below the lower limit.
Experimentallog Level
Verbosity of the service worker's logging.
Experimentalquota Lower Fraction
Lower storage watermark as a fraction of the browser-reported quota (0..1). Eviction stops once usage drops below this. Must be smaller than the upper fraction.
Experimentalquota Upper Fraction
Upper storage watermark as a fraction of the browser-reported quota (0..1). Eviction starts once usage exceeds this.
Configuration of the service worker's local caching behavior.
See