Skip to content

Instantly share code, notes, and snippets.

@rkjha
Last active June 22, 2018 06:53
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Enable gzip compression in nginx
## Enable gzip ##
gzip on;
gzip_disable "msie6";
gzip_vary on;
gzip_min_length 5120;
gzip_proxied any;
gzip_comp_level 4;
gzip_buffers 16 8k;
gzip_http_version 1.1;
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment