Welcome! Log In Create A New Profile

Advanced

Re: Gzip issue with Safari

August 09, 2016 04:14AM
Hi,

I discover the problem reported by mcofko yesterday when I see the nginx configuration generated by the W3 Total Cache extension for WordPress :

if ($http_accept_encoding ~ gzip) {
set $w3tc_enc .gzip;
}
if (-f $request_filename$w3tc_enc) {
rewrite (.*) $1$w3tc_enc break;
}

It doesn’t use the gzip_static feature of nginx “because gz is not compatible with some versions of safari.” https://wordpress.org/support/topic/plugin-w3-total-cache-change-gzip-extension-to-gz

This bug of Safari seems to be well known since 2009 ! :
- https://www.webveteran.com/blog/web-coding/coldfusion/fix-for-safari-and-gzip-compressed-javascripts/
- http://stackoverflow.com/questions/32169082/safari-cannot-decode-raw-data-when-using-gzip
- https://blog.jcoglan.com/2007/05/02/compress-javascript-and-css-without-touching-your-application-code/

But somebody noticed the bug is resolved now :

“The test page blog.kosny.com/testpages/safari-gz indicates that the warning "Be careful naming and test in Safari. Because safari won't handle css.gz or js.gz" is out of date. In Safari 7 on Mavericks, and in Safari on iOS 7, both css.gz and js.gz work. I don't know when this change occurred, I'm only testing with the devices I have.”
http://stackoverflow.com/questions/5442011/serving-gzipped-css-and-javascript-from-amazon-cloudfront-via-s3

So now I don’t know if I must handle this bug or if I can consider this out-of-date.

Cheers
Subject Author Posted

Gzip issue with Safari

mcofko May 16, 2016 06:06AM

Re: Gzip issue with Safari

itpp2012 May 16, 2016 06:23AM

Re: Gzip issue with Safari

mcofko May 16, 2016 06:28AM

Re: Gzip issue with Safari

Francis Daly May 17, 2016 01:26PM

Re: Gzip issue with Safari

mcofko May 18, 2016 03:37AM

Re: Gzip issue with Safari

Francis Daly May 18, 2016 01:06PM

Re: Gzip issue with Safari

sphax3d August 09, 2016 04:14AM

Re: Gzip issue with Safari

Valentin V. Bartenev August 09, 2016 10:48AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 53
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready