Join MDN and developers like you at Mozilla's View Source conference, November 2-4 in Portland, Oregon. Learn more at https://viewsourceconf.org/.

Window.caches

This article is in need of a technical review.

This is an experimental technology
Because this technology's specification has not stabilized, check the compatibility table for the proper prefixes to use in various browsers. Also note that the syntax and behavior of an experimental technology is subject to change in future versions of browsers as the spec changes.

The Window.caches read-only property returns the CacheStorage object associated with the current origin. This object enables service worker functionality such as storing assets for offline use, and generating custom responses to requests.

Syntax

var myCacheStorage = window.caches;

Specifications

Specification Status Comment
Service Workers Working Draft Initial definition.

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support 43.0 ? Not supported ? Not supported
Feature Android Android Webview Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile Chrome for Android
Basic support Not supported 43.0 (Yes) (Yes) (Yes) (Yes) 43.0

See also

Document Tags and Contributors

Contributors to this page: jpmedley, kscarfone, chrisdavidmills
Last updated by: jpmedley,
Hide Sidebar