-
-
Save FlorianRappl/36f8fe0e98aa0d5078feda4d0c5c2fd8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const files = [ | |
'./', | |
'./app.js', | |
'./style.css', | |
]; | |
self.addEventListener('install', async e => { | |
const cache = await caches.open('files'); | |
cache.addAll(files); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment