Answer the question
In order to leave comments, you need to log in
Why does Nginx disable gzip when setting User-Agent?
There is nginx living in the nginx-alpine docker container.
# gzip.conf
gzip on;
gzip_disable "msie6";
gzip_vary on;
gzip_proxied any;
gzip_comp_level 5;
gzip_buffers 16 8k;
gzip_http_version 1.0;
gzip_min_length 10;
gzip_types text/plain text/css application/json application/x-javascript application/javascript text/xml application/xml application/rss+xml text/javascript image/svg+xml application/vnd.ms-fontobject application/x-font-ttf font/opentype;
Cache-Control: max-age=0
Connection: keep-alive
Content-Encoding: gzip
Content-Type: text/plain
Date: Fri, 02 Jun 2017 14:16:44 GMT
Etag: W/"59316a61-25a"
Expires: Fri, 02 Jun 2017 14:16:44 GMT
Last-Modified: Fri, 02 Jun 2017 13:38:41 GMT
Server: nginx
Transfer-Encoding: chunked
Vary: Accept-Encoding
Cache-Control: max-age=0
Connection: keep-alive
Content-Type: text/plain
Date: Fri, 02 Jun 2017 14:17:21 GMT
Etag: W/"59316a61-25a"
Expires: Fri, 02 Jun 2017 14:17:21 GMT
Last-Modified: Fri, 02 Jun 2017 13:38:41 GMT
Server: nginx
Transfer-Encoding: chunked
Vary: Accept-Encoding
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question