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.
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.
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.
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.