Skip to content

Instantly share code, notes, and snippets.

@Tom32i
Created September 9, 2015 08:26
Show Gist options
  • Save Tom32i/c27c6f8f2aa3b54d9d24 to your computer and use it in GitHub Desktop.
Save Tom32i/c27c6f8f2aa3b54d9d24 to your computer and use it in GitHub Desktop.
GZIP config for Nginx
##
# Gzip Settings
##
gzip on;
gzip_disable "msie6";
gzip_vary on;
gzip_proxied any;
gzip_min_length 256;
gzip_comp_level 6;
gzip_types text/plain text/css application/json application/x-javascript application/javascript text/xml application/xml application/xml+rss text/javascript image/svg+xml application/vnd.ms-fontobject application/x-font-ttf font/opentype;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment