caches
是一个 ServiceWorkerGlobalScope
接口的只读属性,返回与当前service worker相关联的CacheStorage
对象。
语法
var myCacheStorage = self.caches;
返回值
一个 CacheStorage
对象。
规范
规范 | 状态 | 备注 |
---|---|---|
Service Workers ServiceWorkerGlobalScope.caches |
Working Draft | Initial definition. |
浏览器兼容性
BCD tables only load in the browser
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.