Thanks for the report! The text for "Transferred" column is hardcoded here: https://dxr.mozilla.org/mozilla-central/rev/5e76768327660437bf3486554ad318e4b70276e1/devtools/client/netmonitor/requests-menu-view.js#1075 @Jarda: can we calculate real size of the request coming from service workers? Honza
When a request is handled by a service worker, no data are transferred over network by HTTP. The response is either generated by JS code or served from cache. The JS code in the service worker can issue another request and just forward the response, but that would show up as another independent request in the network monitor. The response size is in the "Size" column, and that's the only size information that's needed. "Transferred" makes sense only for HTTP responses, where the response could be base64-encoded, compressed etc. Inian, what additional information do you expect in the "Transferred" column that is not already in "Size"?
Maybe the "Transferred" column should say "(service worker)" or something when it's from SW and not over the wire. Similarly, when the response comes from the HTTP cache, the "Transferred" column could say "(cache)".
(In reply to J. Ryan Stinnett [:jryans] (use ni?) from comment #3) > Maybe the "Transferred" column should say "(service worker)" or something > when it's from SW and not over the wire. Similarly, when the response comes > from the HTTP cache, the "Transferred" column could say "(cache)". That's exactly what's happening now :)
Wow excellent..this has been fixed in the recent Developer build. This wasn't how it was working in the Developer edition when I filed the bug. Should reach the stable build soon I guess.
However, the page size is still being shown wrongly as 24.9 MB. See the attached screenshot. It is again considering the "size" instead of the "transferred size". Should I file another bug instead? https://www.dropbox.com/s/3rrffbky21htccy/Screenshot%202016-11-15%2017.55.40.png?dl=0
Oh yes, I was testing in Nightly, and there was a recent fix of the Transferred info in bug 1309523. Version 51 and later should be fixed. The performance pie chart shows the uncompressed sizes of the payload, not the network transferred sizes. That's probably not the expected behavior.
Yup, I would expect the pie chart to contain the transferred sizes of the assets to match the behaviour of pages without service workers.