Skip to content

Instantly share code, notes, and snippets.

@maximecolin
Forked from Tom32i/gzip.conf
Last active September 9, 2015 08:29
Show Gist options
  • Save maximecolin/7cafa76eed1ecc587482 to your computer and use it in GitHub Desktop.
Save maximecolin/7cafa76eed1ecc587482 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