Skip to content

Instantly share code, notes, and snippets.

@darinronne
Last active May 10, 2018 15:41
Show Gist options
  • Save darinronne/20981f7e49581f0f672fbc803fdb4d72 to your computer and use it in GitHub Desktop.
Save darinronne/20981f7e49581f0f672fbc803fdb4d72 to your computer and use it in GitHub Desktop.
Enable gzip on nginx

Apache & nginx Settings for site.com

Additional nginx directives

gzip_proxied any;
gzip on;
gzip_disable "MSIE [1-6]\\.(?!.*SV1)";
gzip_comp_level 5;
gzip_types text/plain text/css application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript image/x-icon image/bmp image/svg+xml;
gzip_vary on;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment