Skip to content

Instantly share code, notes, and snippets.

@Chalarangelo
Last active July 17, 2017 07:35
Show Gist options
  • Save Chalarangelo/ecf576be319a4fe1d9b2d61e1db1f7b3 to your computer and use it in GitHub Desktop.
Save Chalarangelo/ecf576be319a4fe1d9b2d61e1db1f7b3 to your computer and use it in GitHub Desktop.
// "caches" is a global read-only variable, which is an instance of CacheStorage
caches.open(cacheName).then(function(cache) {
// Do something with your cache
});
// Source: https://developer.mozilla.org/en-US/docs/Web/API/CacheStorage/open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment