多层nginx代理的时候开启gzip。
第一层nginx配置
http {
gzip_static on;
gzip_http_version 1.1;
gzip_proxied expired no-cache no-store private auth;
gzip_vary on;
}
第二层nginx配置
http {
gzip_static on;
gzip_http_version 1.0;
gzip_proxied expired no-cache no-store private auth;
gzip_vary on;
}