Created
July 25, 2017 19:52
-
-
Save beebole/7181904aaeabd9b9f2a83d9b07008159 to your computer and use it in GitHub Desktop.
Mobile offline - SW file
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
self.addEventListener( 'activate', function( event ){ | |
event.waitUntil( | |
caches.open( 'name_your_cache_container' ) | |
.then( function( cache ) { | |
return cache.addAll( urlsToCache ); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment