SharedWorkerGlobalScope.applicationCache - Web APIs 编辑
Important: 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 instead.
The applicationCache
read-only property of the SharedWorkerGlobalScope
interface returns the ApplicationCache
object for the worker (see Using the application cache).
Syntax
var nameObj = self.applicationCache;
Value
An ApplicationCache
.
Example
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.
Browser compatibility
BCD tables only load in the browser
See also
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论