重要 : Application Cache is deprecated as of Firefox 44, and is no longer available in insecure contexts from Firefox 60 onwards ( bug 1354175 , currently Nightly/Beta only). Don't use it to make offline websites — consider using service workers 代替。

applicationCache 只读特性在 SharedWorkerGlobalScope interface returns the ApplicationCache object for the worker (see Using the application cache ).

句法

var nameObj = self.applicationCache;
					

ApplicationCache .

范例

If a shared worker has an AppCache associated with it, you can return a reference to the cache using

self.applicationCache
					

from inside the shared worker.

浏览器兼容性

The compatibility table in 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. 更新 GitHub 上的兼容性数据
桌面 移动
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
applicationCache Chrome 4 Edge ≤79 Firefox 29 IE No Opera 10.6 Safari No WebView Android Yes Chrome Android Yes Firefox Android 29 Opera Android Yes Safari iOS ? Samsung Internet Android Yes

图例

完整支持

完整支持

不支持

不支持

兼容性未知 ?

兼容性未知

另请参阅

元数据

  • 最后修改: