Skip to content

Instantly share code, notes, and snippets.

@kypflug

kypflug/sw-3.js Secret

Created December 15, 2017 01:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kypflug/b45c38e3aab068e2ed73f5b6a2fcf592 to your computer and use it in GitHub Desktop.
Save kypflug/b45c38e3aab068e2ed73f5b6a2fcf592 to your computer and use it in GitHub Desktop.
caches.open('my-cache').then(function(cache) {
return cache.addAll([
'/index.html',
'/styles.css',
'/main.js'
]);
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment