Updated MIME types for gzip
* https://github.com/h5bp/server-configs-nginx/blob/master/mime.types - https://github.com/h5bp/server-configs-nginx/commits/master/mime.types * https://github.com/jshttp/mime-db * https://github.com/nginx/nginx/pull/2 * http://hg.nginx.org/nginx/file/tip/conf/mime.types Resolved #3
This commit is contained in:
parent
22a8815393
commit
fa9f520110
23
README.md
23
README.md
|
|
@ -68,10 +68,29 @@ http {
|
||||||
|
|
||||||
# reduce the data that needs to be sent over network -- for testing environment
|
# reduce the data that needs to be sent over network -- for testing environment
|
||||||
gzip on;
|
gzip on;
|
||||||
|
# gzip_static on;
|
||||||
gzip_min_length 10240;
|
gzip_min_length 10240;
|
||||||
gzip_proxied expired no-cache no-store private auth;
|
gzip_comp_level 1;
|
||||||
gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/json application/xml;
|
gzip_vary on;
|
||||||
gzip_disable msie6;
|
gzip_disable msie6;
|
||||||
|
gzip_proxied expired no-cache no-store private auth;
|
||||||
|
gzip_types
|
||||||
|
# text/html is always compressed by HttpGzipModule
|
||||||
|
text/css
|
||||||
|
text/javascript
|
||||||
|
text/xml
|
||||||
|
text/plain
|
||||||
|
text/x-component
|
||||||
|
application/javascript
|
||||||
|
application/x-javascript
|
||||||
|
application/json
|
||||||
|
application/xml
|
||||||
|
application/rss+xml
|
||||||
|
application/atom+xml
|
||||||
|
font/truetype
|
||||||
|
font/opentype
|
||||||
|
application/vnd.ms-fontobject
|
||||||
|
image/svg+xml;
|
||||||
|
|
||||||
# allow the server to close connection on non responding client, this will free up memory
|
# allow the server to close connection on non responding client, this will free up memory
|
||||||
reset_timedout_connection on;
|
reset_timedout_connection on;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue