Created
December 4, 2015 16:09
-
-
Save danwoods/29abd789ededa27502b3 to your computer and use it in GitHub Desktop.
Erroring Service Worker 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
this.addEventListener("fetch", function(event) { | |
if (event.request.url === 'https://myserver.com/app.js') { | |
event.respondWith( | |
... | |
// Link to image of errored network call: http://imgur.com/xs2by8C |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment