Skip to content

Instantly share code, notes, and snippets.

@lukecav

lukecav/ngnix.config

Last active Dec 20, 2018
Embed
What would you like to do?
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

This comment has been minimized.

Copy link
Owner Author

@lukecav 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
You can’t perform that action at this time.