Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Habilitando GZIP em servidores Nginx
# 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;
gzip_buffers 16 8k;
# Desabilita o gzip para alguns navegadores
gzip_disable "MSIE [1-6].(?!.*SV1)";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment