← Storage & Files
Cache Storage
Probing…Cache Storage is a web platform capability in the Storage & Files category. Store request/response pairs — the backbone of offline apps. Supported in Chromium 43+, Firefox 41+, and Safari 11.1+. Requires a secure context (HTTPS or localhost).
Secure context
Try it
Loading demo…
Code
const cache = await caches.open('shwcs-demo')
// fetch + store a response keyed by its URL
await cache.add('/favicon.ico')
const keys = await cache.keys()
console.log(keys.map(req => req.url))
await caches.delete('shwcs-demo')Browser support
Chromium
43
Firefox
41
Safari
11.1
Frequently asked questions
Which browsers support Cache Storage?
Supported in Chromium 43+, Firefox 41+, and Safari 11.1+.
Does Cache Storage require HTTPS?
Yes. Cache Storage needs a secure context, so it only works over HTTPS (or on localhost during development).
What is Cache Storage used for?
Store request/response pairs — the backbone of offline apps.
Can I try Cache Storage in my browser?
Yes. shwcs.net runs a live Cache Storage demo that probes your current browser and lets you try the API. Everything runs locally — nothing is sent anywhere.