Skip to content

Instantly share code, notes, and snippets.

@kypflug

kypflug/sw-2.js Secret

Created December 15, 2017 01:55
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save kypflug/e39fd8caf4b5c5bff92af9478a2778f2 to your computer and use it in GitHub Desktop.
Fetch event handler example
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