Welcome! Log In Create A New Profile

Advanced

disabling gzip if etag exists in proxy_pass response

Posted by vitalyb 
disabling gzip if etag exists in proxy_pass response
July 02, 2014 12:46PM
Hi,

I'm new to nginx.

Is there a way to disable gzip if proxy_pass reutrns the ETag header.

I.E:
gzip on;
.
.
.
location /foo/bar {
proxy_pass http://server:123;

if ($upstream_http_etag) {
gzip off;
}
}

Basically I'm looking for a workaround to this bug that will disable the gzip compression if server responded with etag header.

http://trac.nginx.org/nginx/ticket/377

Thank you,
Vitaly
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 135
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