Created
September 18, 2013 11:43
-
-
Save prawin/6607985 to your computer and use it in GitHub Desktop.
nginx compression settings
This file contains hidden or 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
location ~ ^/(assets)/ { | |
root /path/to/assets/folder/; | |
gzip on; | |
gzip_static on; | |
gzip_http_version 1.1; | |
gzip_disable "msie6"; | |
gzip_vary on; | |
gzip_min_length 10; | |
gzip_buffers 64 8k; | |
gzip_comp_level 3; | |
gzip_proxied any; | |
gzip_types text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript; | |
expires max; | |
add_header Cache-Control public; | |
break; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment