Skip to content

Instantly share code, notes, and snippets.

@lukecav
Last active December 20, 2018 09:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lukecav/a8e63b732e2cfd0008c6f82d4a3191fe to your computer and use it in GitHub Desktop.
Save lukecav/a8e63b732e2cfd0008c6f82d4a3191fe to your computer and use it in GitHub Desktop.
Enabling Gzip compression in NGNIX
gzip on;
gzip_disable "msie6";
gzip_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript image/svg+xml;
@lukecav
Copy link
Author

lukecav commented Jul 27, 2017

##
# Gzip Settings
##
gzip on;
gzip_disable "msie6";

gzip_vary on;
gzip_proxied expired no-cache no-store private auth;
#compression level
gzip_comp_level 6;
gzip_min_length 1000;
gzip_buffers 16 8k;
gzip_http_version 1.1;
# files to gzip
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript image/svg+xml;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment