Skip to content

Instantly share code, notes, and snippets.

@beebole

beebole/sw10.js

Created Jul 25, 2017
Embed
What would you like to do?
Mobile offline - SW file
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