Course contentsShow
← Web Development
Lesson 2441 of 2,98243. Service Workers Deep DiveFree lesson

Network Panel with Service Workers

Identify requests served from cache vs network and understand service worker interception in Network panel.

Network Panel with Service Workers

You'll learn how to use the browser's Network panel to identify which requests are served by the service worker versus the network.

Understanding the Network Panel with Service Workers

When a service worker is active, it sits between your web page and the network, intercepting requests. The Network panel in DevTools shows you exactly what's happening with each request — a critical skill for debugging caching strategies and offline behavior.

Reading the Size Column

In Chrome DevTools' Network panel, look at the Size column for each request:

  • (Service Worker) or (from ServiceWorker): The request was intercepted and handled by your service worker (often from cache)
  • Actual file size (e.g., "45.2 KB"): The request went to the network
  • (disk cache) or (memory cache): Browser's HTTP cache, not your service worker cache

The Service Worker Badge

Requests handled by your service worker often show a small gear icon ⚙️ or badge next to them, making them instantly recognizable. This visual indicator confirms interception occurred.

Filtering Service Worker Traffic

You can filter the Network panel to show only service worker traffic or exclude it entirely. Use the filter dropdown or type -scheme:service-worker to hide service worker requests and see what would have hit the network.

Why This Matters

Without checking the Network panel, you might think your cache-first strategy is working when requests are actually hitting the network. Or worse, you might wonder why updates aren't appearing when everything is being served from cache!

Key Takeaway: The Network panel's Size column and service worker badges let you verify which requests your service worker intercepts versus which hit the network — essential for debugging caching strategies and understanding real-world performance.