SharedWorkerGlobalScope.applicationCache

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

DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
applicationCacheChrome Full support 4Edge Full support ≤79Firefox Full support 29IE No support NoOpera Full support 10.6Safari No support NoWebView Android Full support YesChrome Android Full support YesFirefox Android Full support 29Opera Android Full support YesSafari iOS ? Samsung Internet Android Full support Yes

Legend

Full support
Full support
No support
No support
Compatibility unknown
Compatibility unknown

See also