-
-
Save kypflug/e39fd8caf4b5c5bff92af9478a2778f2 to your computer and use it in GitHub Desktop.
Fetch event handler example
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.onfetch = function(event) { | |
event.respondWith( | |
fetch(event.request); | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment