Ways to control the gzip_vary directive from nginx 0.6.34 and above?

Zev Blut zblut at cerego.co.jp
Tue Sep 15 11:20:48 MSD 2009


On 09/15/2009 02:48 PM, Igor Sysoev wrote:
> On Tue, Sep 15, 2009 at 02:38:48PM +0900, Zev Blut wrote:

>> I don't think I have, but just in case here is a copy of my gzip commands:
>> ---------------------
>> # Serve up static compressed items
>> gzip_static  on;
>>
>> ## Compression
>> gzip on;
>> gzip_http_version 1.1;
>> gzip_comp_level 2;
>> gzip_proxied any;
>> gzip_min_length  1100;
>> gzip_buffers 16 8k;
>> gzip_types text/plain text/html text/css application/x-javascript
>> text/xml application/xml application/xml+rss text/javascript;
>> # Some version of IE 6 don't handle compression well on some mime-types,
>> so just disable for them
>> gzip_disable "MSIE [1-6].(?!.*SV1)";
>> # Set a vary header so downstream proxies don't send cached gzipped
>> content to IE6
>> gzip_vary on;
>> ---------------------
>>
>> But with these commands things like jpgs and mp3s are still getting the
>> Vary: Accept-Encoding header, even though they are not compressed.
>> Is there something I am missing?
>
> It should not.
> Could you create debug log ?

Sure.

I have attached a debug log from 0.6.39 that has the Vary when it should 
not.  If you would like I can also attach a debug log from 0.6.32 that 
does not include the Vary (which is what I need).

Thanks,
Zev

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: nginx_6_39_with_vary_error.log
URL: <http://nginx.org/pipermail/nginx/attachments/20090915/6da5f22a/attachment.ksh>


More information about the nginx mailing list