ServiceWorkerGlobalScope.caches

The ServiceWorkerGlobalScope.caches read-only property returns the CacheStorage object associated with the service worker.

Syntax

var myCacheStorage = self.caches;

Value

A CacheStorage object.

Specifications

Specification Status Comment
Service Workers
The definition of 'ServiceWorkerGlobalScope.caches' in that specification.
Working Draft Initial definition.

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support40 ?441 No24 No
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support4040 ?4424 No4.0

1. Service workers (and Push) have been disabled in the Firefox 45 and 52 Extended Support Releases (ESR).

See also

Document Tags and Contributors

Contributors to this page: fscholz, chrisdavidmills, rolfedh, Speculative
Last updated by: fscholz,