From fa9f5201105751037c28c4dbbc6ad6b173ded4ea Mon Sep 17 00:00:00 2001 From: Denis Denisov Date: Sun, 23 Sep 2018 16:30:24 +0300 Subject: [PATCH] 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 --- README.md | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 493c6ec..686635d 100644 --- a/README.md +++ b/README.md @@ -68,10 +68,29 @@ http { # reduce the data that needs to be sent over network -- for testing environment gzip on; + # gzip_static on; gzip_min_length 10240; - gzip_proxied expired no-cache no-store private auth; - gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/json application/xml; + gzip_comp_level 1; + gzip_vary on; 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 reset_timedout_connection on;