Skip to content

Instantly share code, notes, and snippets.

@edwardgalligan
Created November 5, 2016 18:09
Show Gist options
  • Save edwardgalligan/b634935f0c529dd718cc0d7d2e88dbb3 to your computer and use it in GitHub Desktop.
Save edwardgalligan/b634935f0c529dd718cc0d7d2e88dbb3 to your computer and use it in GitHub Desktop.
Chrome Service Worker Link Header
HTTP/1.1 200 OK
Content-Type: text/html
Content-Length: 0
Link: </serviceworker.js>;rel="serviceworker"
Refresh: 0
self.addEventListener('fetch', e => e.respondWith(new Response('Hello world!')))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment