Why transferred bytes are bigger than size bytes in firefox dev tools?
Asked Answered
G

1

29

I am measuring the performance from a website. When looking at the firefox-developer-tools, I noticed a weird behavior. There is a specific JS file which the transferred size is 2,831.54 KB, but the actual size is 1280kb.

Image of Firefox dev-tools with the description

According to Mozilla, the Transferred size should be smaller or equals to Size:

Transferred (new in Firefox 38): the number of bytes that were actually transferred to load the resource. This will be less than Size if the resource was compressed.

Size: the size of the resource, after any decompression.

Firefox Developer Edition version: 41.0a2 (2015-07-19)

What could have caused this behavior?

Gothenburg answered 20/7, 2015 at 4:32 Comment(10)
Can you provide a public URLs for this resource I can use to replicate this and log a bug?Lewiss
Hi @canuckistani. Sorry for taking a long time to answer. Is there a way to send that to you in private? :)Dioecious
Sure, jgriffiths at mozilla dot comLewiss
As a follow-up, Mario gave me a url to test and I saw an odd effect - a specific file where the transferred size was much larger than the actual size. When I used wget or curl I got the same size in the content length header. Chrome reported the same size. Then I copied the file off of of the server to a different server hosted by surge.sh and saw completely different ( and much more normal ) transferred / real sizes reported by all tools used. I suspect this is a server configuration / http quirk.Lewiss
I have the same problem. Any solutions yet?Helsinki
Not really. I haven't investigated further, but it seems something wrong either in the server or in Firefox itself. When using wget or curl the result is displayed correctly, so we don't knowDioecious
@canuckistani Here is a public URL which exhibits this issue (jpg): upload.wikimedia.org/wikipedia/commons/b/b5/…Nord
Thanks, logged a bugLewiss
FWIW this bug has been fixed and the fix will appear in Firefox 52.Benedikt
The incorrect sizes appear to happen in my development JavaScript builds, but in production mode, the numbers are correct.Husch
D
0

As stated in the most upvoted comment on the question:

This appears to be a rare bug in Firefox that has been fixed in Firefox 52:

FWIW this bug has been fixed and the fix will appear in Firefox 52.

– Tom Tromey Feb 14 '17 at 14:59

Disembody answered 19/11, 2020 at 22:25 Comment(2)
As of 90.0.2, I can still see transferred > sizeIngather
Mozilla Firefox 107.0. Still the same bug.Jemadar

© 2022 - 2024 — McMap. All rights reserved.