Gzip does not work if Content-Type contain semicolon?

Hi,

I have some serious troubles getting gzip to compress text/html and
text/plain content.

I’ve put a nginx as revproxy to Jenkins. Jenkins return headers like
“Content-Type: text/plain;charset=UTF-8” and “Content-Type:
text/html;charset=UTF-8”. Even with all fancy stuff like enabling gzip
for 1.0 proto, gzip_proxied any and so on, no output is compressed.

Tested version 1.5.4.

– Piotr.

Hello!

On Wed, Oct 02, 2013 at 05:07:01PM +0200, Piotr K. wrote:

Hi,

I have some serious troubles getting gzip to compress text/html and
text/plain content.

I’ve put a nginx as revproxy to Jenkins. Jenkins return headers like
“Content-Type: text/plain;charset=UTF-8” and “Content-Type:
text/html;charset=UTF-8”. Even with all fancy stuff like enabling
gzip for 1.0 proto, gzip_proxied any and so on, no output is
compressed.

Do you have gzip_types properly set?

http://nginx.org/r/gzip_types


Maxim D.
http://nginx.org/en/donation.html

Maxim, thanks for your time and willing to help.

False bug report.

After doing some tests I found out that if I check localhost it does
gzip, but if I go thru full ip/domain it does not - I had $http_proxy
variable set and the proxy server was not providing me gzipped content.
Sorry about the noise.

– Piotr.

Hi,

On 10/02/2013 05:13 PM, Maxim D. wrote:

Do you have gzip_types properly set?

Module ngx_http_gzip_module

I believe I do. I tried quite a lot of combinations, also, text/html is
default on and cannot be removed if I understand it corrently so it
should work just as-is. I tried adding even full string like
“text/html;charset=UTF-8” still no luck.

– Piotr.

Hello!

On Wed, Oct 02, 2013 at 05:27:15PM +0200, Piotr K. wrote:

it should work just as-is. I tried adding even full string like
“text/html;charset=UTF-8” still no luck.

Could you please show the configuration you use, and
an example request which shows the response isn’t gzipped?


Maxim D.
http://nginx.org/en/donation.html