WebPagetest Forums
WPTAgent - iOS devices - inconsistent "bytes in" for objects with GZIP - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: WebPagetest (/forumdisplay.php?fid=7)
+--- Forum: Bugs/Issues (/forumdisplay.php?fid=10)
+--- Thread: WPTAgent - iOS devices - inconsistent "bytes in" for objects with GZIP (/showthread.php?tid=15354)



WPTAgent - iOS devices - inconsistent "bytes in" for objects with GZIP - timdaish - 05-03-2018 09:44 PM

Using the WPTAgent (version as of 1wk ago) and WPT 17.12, I have two Apple iOS11 devices running in a private instance and the bytes-in (downloaded) size is correct for some objects served with GZIP and wrong (=uncompressed size) for other objects also served with GZIP.

The issue is repeatable over multiple tests and the different iOS devices and always seems to affect the same objects in each run. Several objects in each run report the incorrect bytes-in size.

The issue has also been replicated on public WPT using iPhone6 at: https://www.webpagetest.org/result/180503_BC_68f059dfa4526a36d47a91e514dcf053/1/details/#waterfall_view_step1

e.g. for two objects from the same domain and each with a Content-Encoding: gzip response header:
object #12 is shown correctly with bytes-in < uncompressed size
object #15 is shown incorrectly with bytes-in = uncompressed size.

[attachment=802]

Same site tested on desktop, Android via WPT, emulation in Google Chrome and HTTPWatch on an Apple device all show the content is correctly compressed.

Please advise.

thanks, Tim


RE: WPTAgent - iOS devices - inconsistent "bytes in" for objects with GZIP - pmeenan - 05-04-2018 12:23 AM

If possible, could you file an issue on the github tracker for the agent? https://github.com/WPO-Foundation/wptagent/issues

It is going to depend on what iOS exposes to the dev tools interface and if anything broke with it but hopefully it's just an issue with the agent's processing of the events. I'm actively working on fixing the timeline capture for iOS 11.3 right now so I can take a look while I'm in the code.


RE: WPTAgent - iOS devices - inconsistent "bytes in" for objects with GZIP - timdaish - 05-04-2018 12:49 AM

thanks - raised as #114