samples/service-worker/basic
Dominic Cooney 8fdd1dec27 Update Service Worker/basic sample readme.
Service Workers no longer require Canary or flipping flags.
2015-02-09 10:56:03 +09:00
..
index.html Update index.html 2014-12-05 18:17:34 -02:00
readme.md Update Service Worker/basic sample readme. 2015-02-09 10:56:03 +09:00
service-worker.js add basic service worker demo 2014-08-05 20:19:04 -07:00

readme.md

Service Worker Sample

See https://googlechrome.github.io/samples/service-worker/basic/index.html for a live demo.

Directions:

  • Install Chrome, or another browser that supports Service Workers.
  • Open the demo at https://googlechrome.github.io/samples/service-worker/basic/index.html (source)
  • Open the Developer Tools. Things are logged there later on.
  • Try visiting Cleveland and get a 404. Go back.
  • Click the 'Register' button, watch the Inspector console, then try visiting Cleveland again... oooh.
  • Go to chrome://inspect#service-workers and click on Inspect to open the Inspector and debug your Service Worker (source)