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
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Feature | Chrome | Edge | Firefox | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|---|
Basic support | 40 | ? | 441 | No | 24 | No |
Feature | Android webview | Chrome for Android | Edge mobile | Firefox for Android | Opera Android | iOS Safari | Samsung Internet |
---|---|---|---|---|---|---|---|
Basic support | 40 | 40 | ? | 44 | 24 | No | 4.0 |
1. Service workers (and Push) have been disabled in the Firefox 45 and 52 Extended Support Releases (ESR).