Debugging Service Workers

I recently added a Service Worker to, but it wasn’t caching the assets I had defined. Nothing was showing up using Chrome’s Developer Tools. To enable debugging of Service Workers within Chrome, follow these steps:

  1. Go to chrome://serviceworker-internals
  2. Check “Open DevTools window and pause JavaScript execution on Service Worker startup for debugging”.