SharedWorkerGlobalScope.applicationCache

The applicationCache read-only property of the SharedWorkerGlobalScope interface returns the ApplicationCache object for the worker (see Using the application cache).

Syntax

JavaScript
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

JavaScript
self.applicationCache

from inside the shared worker.

Specifications

Specification Status Comment
WHATWG HTML Living Standard
The definition of 'applicationCache' in that specification.
Living Standard No change from Web Workers.
Web Workers
The definition of 'applicationCache' in that specification.
Candidate Recommendation Initial definition.

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Support 3 29.0 (29.0) Not supported 10.60 Not supported
Feature Android Chrome for Android Firefox Mobile (Gecko) Firefox OS (Gecko) IE Mobile Opera Mobile Safari Mobile
Support ? Not supported 29.0 (29.0) 1.4 ? ? ?

See also

License

© 2016 Mozilla Contributors
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-us/docs/web/api/sharedworkerglobalscope/applicationcache

API applicationCache Property Reference Référence SharedWorkerGlobalScope Web Workers