Created
February 19, 2016 21:33
-
-
Save petebrowne/f1451dac3f95c09d02e6 to your computer and use it in GitHub Desktop.
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.addEventListener('fetch', event => { | |
var response = new Response('This came from the service worker!'); | |
event.respondWith(response); | |
// Default behavior - same as not using `respondWith` | |
// event.responseWith(fetch(event.request)); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment