New issue
Advanced search Search tips

Issue 883561 link

Starred by 3 users

Issue metadata

Status: Assigned
Owner:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Feature



Sign in to add a comment

DevTools Network panel should show file sizes not "(from ServiceWorker)"

Project Member Reported by esprehn@chromium.org, Sep 13

Issue description

Google Chrome	69.0.3497.92 (Official Build) (64-bit)
Revision	eb2c6d16bcb960cc5c322243c1771713460c4bcf-refs/branch-heads/3497@{#921}
OS	Mac OS X
JavaScript	V8 6.9.427.22

What steps will reproduce the problem?
(1) Open a site like mobile.twitter.com
(2) Record a timeline of the page loading.
(3) Look for the file sizes.

What is the expected result?

Shows the size of each file. The Content-Length header is displayed if I manually click each file.

What happens instead?

All files say "(from ServiceWorker)" for the Size column.


 
My understanding is the size is only shown when devtools knows the response was transferred over the network.  In the case of a service worker the response may have come from the network, but it may also have come from Cache API or been synthesized using the `new Response()` constructor.

The way other browsers solve this issue is to show another entry in the network panel for any fetch() calls initiated from the service worker script itself.  That way you can see the timing for the "outer" load that was intercepted by the SW and the "inner" network request made by the SW.
 Issue 884172  has been merged into this issue.
Owner: jarhar@chromium.org
Status: Assigned (was: Untriaged)

Sign in to add a comment