I'm currently learning about the gzip compression in nginx.
I configured nginx as bellow:
server {
listen 12300;
server_name 192.168.0.199;
gzip on;
gzip_buffers 32 4k;
gzip_comp_level 5;
gzip_disable "MSIE [1-6]\.";
gzip_http_version 1.1;
gzip_min_length 500;
gzip_proxied expired no-cache no-store private auth;
gzip_types text/plain text/css text/xml text/javascript application/xml application/javascript application/json;
gzip_vary on;
location / {
root /test/dist;
index index.html index.htm;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /etc/nginx/html/50x.html;
}
}
And then, I used the Postman to simulate a request. Based on my understanding, the response should not be gzipped because the request and response do not meet the conditions specified in the gzip_proxied
configuration. However, the response is still being gzipped.
I want to know the reason. Anyone can help me?