Created
May 9, 2016 19:22
-
-
Save vladyslav2/d3bb353bd947d86593344b61462ec3f4 to your computer and use it in GitHub Desktop.
nginx gzip configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http { | |
gzip on; | |
gzip_http_version 1.1; | |
gzip_vary on; | |
gzip_comp_level 8; | |
gzip_proxied any; | |
gzip_min_length 1000; | |
gzip_types | |
# text/html is always compressed by HttpGzipModule | |
text/css | |
text/javascript | |
text/xml | |
text/plain | |
text/x-component | |
application/javascript | |
application/json | |
application/xml | |
application/rss+xml | |
font/truetype | |
font/opentype | |
application/vnd.ms-fontobject | |
image/svg+xml; | |
gzip_buffers 16 8k; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment