Gzip issue with Safari

Valentin V. Bartenev vbart at nginx.com
Tue Aug 9 14:46:12 UTC 2016


On Tuesday 09 August 2016 04:14:39 sphax3d wrote:
> 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
[..]

That doesn't make any sense.

The gzip static module doesn't need ".gz" in the requests, it just checks files
on the disk and serve them as the response like they were compressed on the fly.

  wbr, Valentin V. Bartenev



More information about the nginx mailing list