Welcome! Log In Create A New Profile

Advanced

Bug in supporting Quality zero (negate) parameter in Accept-Encoding

Radek Burkat
July 29, 2011 02:04PM
Spent the last day chasing down a corner case with Nginx and Level3
CDN. It turns out that some requests that they send have the
following Accept-Encoding header.

"Accept-Encoding: compress, gzip;q=0"

Based on this RFC
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html this is a
valid way to say "NO gzip encoding"
Nginx ignores this and actually sends a gziped version. This causes
the CDN to error, as defined by the RFC.

Example

This should NOT return compressed data, as defined by the RFC

curl -I http://cs.pinkbike.org/127/sprt/c/top.css -H "Accept-Encoding: gzip;q=0"

HTTP/1.1 200 OK
Server: nginx/1.0.0
Date: Fri, 29 Jul 2011 17:06:14 GMT
Content-Type: text/css
Last-Modified: Fri, 15 Jul 2011 20:13:20 GMT
Connection: close
Vary: Accept-Encoding
Expires: Thu, 31 Dec 2037 23:55:55 GMT
Cache-Control: max-age=315360000
Cache-Control: public
Content-Encoding: gzip


Is there a parameter/idea that I am missing or is this a bug?

Radek Burkat

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Bug in supporting Quality zero (negate) parameter in Accept-Encoding

Radek Burkat July 29, 2011 02:04PM

Re: Bug in supporting Quality zero (negate) parameter in Accept-Encoding

Igor Sysoev July 29, 2011 02:08PM

Re: Bug in supporting Quality zero (negate) parameter in Accept-Encoding

rburkat July 29, 2011 03:11PM

Re: Bug in supporting Quality zero (negate) parameter in Accept-Encoding

rburkat July 29, 2011 03:44PM

Re: Bug in supporting Quality zero (negate) parameter in Accept-Encoding

António P. P. Almeida July 29, 2011 03:30PM

Re: Bug in supporting Quality zero (negate) parameter in Accept-Encoding

Igor Sysoev July 31, 2011 01:40PM

Re: Bug in supporting Quality zero (negate) parameter in Accept-Encoding

António P. P. Almeida July 29, 2011 04:24PM

Re: Bug in supporting Quality zero (negate) parameter in Accept-Encoding

Igor Sysoev July 31, 2011 01:42PM

Re: Bug in supporting Quality zero (negate) parameter in Accept-Encoding

rburkat August 03, 2011 02:17PM

Re: Bug in supporting Quality zero (negate) parameter in Accept-Encoding

Igor Sysoev August 04, 2011 11:06AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 176
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready