重要 : 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;
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.
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 |
完整支持
不支持
兼容性未知