public
Last active

Habilitando GZIP em servidores Nginx

  • Download Gist
gistfile1.bash
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
# Habilita o gzip
gzip on;
gzip_http_version 1.1;
gzip_vary on;
gzip_comp_level 6;
gzip_proxied any;
 
# Mime-types que serĂ£o compactados
gzip_types text/html text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
 
# http://blog.leetsoft.com/2007/7/25/nginx-gzip-ssl
gzip_buffers 16 8k;
 
# Desabilita o gzip para alguns navegadores
gzip_disable "MSIE [1-6].(?!.*SV1)";

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.