Last active
June 22, 2018 06:53
-
-
Save rkjha/9906994 to your computer and use it in GitHub Desktop.
Enable gzip compression in nginx
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
## 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