Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add Cache Storage API / Cache API #3122
As of Chrome 43 (and Opera 30) this has been available globally and outside of the Service Worker context (meaning you can use it standalone). The feature was implemented back in Firefox 39, but IIRC not yet exposed to the global context. Afaik, it's in development for Edge.
I might suggest treating it as a top-level storage item in a similar way to how IDB is treated today: http://caniuse.com/#feat=indexeddb. Over on Chrome our storage team are recommending developers use the Cache API for URL addressable resources and IDB for everything else atm. Can has? :)
Docs + samples: