Welcome! Log In Create A New Profile

Advanced

gzip issue.

November 26, 2010 04:38AM
Hello!

I use gzip feature with following configuration.
If upstream server doesn't make a gzip file, everything is ok and perfect.

However if upstream server makes a gzip file, NGINX always send a gzip file to client.
in this case, NGINX doesn't check both accep-enconding and user-agent.


################
# gzip configuration w/ nginx/0.8.53
################
gzip_static on;
gzip on;
gzip_buffers 64 8k; # 64*8 = 512kbytes
gzip_comp_level 2;
gzip_http_version 1.0;
gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript;
gzip_min_length 1100;
gzip_disable "msie6";
gzip_vary on;

/YM
Subject Author Posted

gzip issue.

doors November 26, 2010 04:38AM

Re: gzip issue.

Maxim Dounin November 26, 2010 06:40AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 219
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready