Created
July 25, 2017 19:51
-
-
Save beebole/71c96387da81e36b6602269d0ae09621 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
return caches.open( 'name_your_cache_container' ) | |
.then( function( cache ) { | |
cache.put( event.request, resp.clone( )); | |
return resp; | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment