Created
October 28, 2019 14:15
-
-
Save thepassle/ff68998ae3470a2cd152c7b269377c91 to your computer and use it in GitHub Desktop.
strategies9
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
// network first | |
self.addEventListener('fetch', function(event) { | |
event.respondWith( | |
fetch(event.request).catch(function() { | |
return caches.match(event.request); | |
}) | |
); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment