如果proxy_pass响应中存在etag,则禁用gzip [英] disabling gzip if etag exists in proxy_pass response

查看:130
本文介绍了如果proxy_pass响应中存在etag,则禁用gzip的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是nginx的新手.

I'm new to nginx.

如果proxy_pass要求ETag标头,是否可以禁用gzip.

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

IE:

gzip on;
.
.
.

    location /foo/bar {
      proxy_pass http://server:123;

      if ($upstream_http_etag) {
         gzip off;
      }
    }

基本上,我正在寻找此错误的解决方法,如果服务器用etag标头响应,该错误将禁用gzip压缩.

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

谢谢你, 维塔利

推荐答案

现在有该错误也已关闭.

这篇关于如果proxy_pass响应中存在etag,则禁用gzip的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆