Created
October 28, 2019 14:12
-
-
Save thepassle/7c9674d1286a3416b9d5ad601c1f05a6 to your computer and use it in GitHub Desktop.
strategies3
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
// cache only | |
self.addEventListener(‘fetch’, function(event) { | |
// If a match isn’t found in the cache, the response | |
// will look like a connection error | |
event.respondWith(caches.match(event.request)); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment