Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GZIP compression always 1.00x on iOS Safari?

I'm looking at the web traffic between iOS 9.2 Safari and our web server and I see that all of our responses are GZIP-ed, but with a factor 1.00x. So we're not saving any bandwidth, which is the whole point.

Does anyone know what could be going on here? Am I overlooking something? Or could something be misconfigured? On any desktop browser the content is perfectly compressed at least with a factor 5.

Thanks!

Pascal.

enter image description here

like image 621
Pascal Lindelauf Avatar asked Nov 09 '22 22:11

Pascal Lindelauf


1 Answers

Actually, this is a misinterpretation of Safari Webinspector. You may find the answer here: http://forums.tumult.com/t/turning-on-compression-enabling-gzip-on-your-server-to-speed-up-loading-times/4762/3

Safari Encoded, Decoded, Transfered, Compression rate is not reliable (or at least, does not have the same meaning as it has in Chrome/Firefox/Edge).

This "Safari feature" has been pinpointed in 2014 here: https://stackoverflow.com/a/21943693/7173518

Without "content length", Safari get lost in his indicators. And there is no "content length" on Nginx with dynamic gzip activated.

C.

like image 75
Cédric Chenavier Avatar answered Nov 15 '22 12:11

Cédric Chenavier