/debugging-service-workers

Primary LanguageJavaScriptApache License 2.0Apache-2.0

Debugging Service Workers Code Lab

These are the resource files needed for the Debugging Service Workers code lab from Google.

This is a work in progress, if you find a mistake, please file an issue. Thanks!

What you’ll learn

  • How to inspect your Service Worker and manifest in the new Application panel
  • How to explore and clearing Cache Storage
  • How to simulate different network conditions
  • How to debug a service worker with debugger statements and breakpoints
  • How to simulate Push notifications

What you’ll need

  • Chrome 47 or above, though any browser that supports service workers and cache.addAll() will work
  • Web Server for Chrome, or use your own web server of choice.
  • The sample code
  • A text editor
  • Basic knowledge of HTML, CSS and JavaScript
  • (Optional) Node is required in the last step to deploy to Firebase