Skip to content

Instantly share code, notes, and snippets.

@evemilano
Created May 24, 2014 19:48
Show Gist options
  • Save evemilano/77517a6e815b62ed6604 to your computer and use it in GitHub Desktop.
Save evemilano/77517a6e815b62ed6604 to your computer and use it in GitHub Desktop.
Abilitare GZIP su NGINX via HTACCESS
gzip on;
gzip_comp_level 2;
gzip_http_version 1.0;
gzip_proxied any;
gzip_min_length 1100;
gzip_buffers 16 8k;
gzip_types text/plain text/html text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript;
# Disable for IE < 6 because there are some known problems
gzip_disable "MSIE [1-6].(?!.*SV1)";
# Add a vary header for downstream proxies to avoid sending cached gzipped files to IE6
gzip_vary on;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment