From 294e08557ca7e3b5a3a980f12c9839b4005b3c8a Mon Sep 17 00:00:00 2001 From: Tobias Reich Date: Sat, 20 Aug 2016 17:17:01 +0200 Subject: [PATCH] Updated gzip_types and charset_types MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit … both are now using the same coding convention. Each type in its own row and `text/html` comment at the top (where all comments are placed). --- nginx.conf | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/nginx.conf b/nginx.conf index 8e3cddc..ba29426 100644 --- a/nginx.conf +++ b/nginx.conf @@ -38,7 +38,14 @@ http { # Update charset_types to match updated mime.types. # text/html is always included by charset module. - charset_types text/css text/plain text/vnd.wap.wml application/javascript application/json application/rss+xml application/xml; + charset_types + text/css + text/plain + text/vnd.wap.wml + application/javascript + application/json + application/rss+xml + application/xml; # Include $http_x_forwarded_for within default format used in log files log_format main '$remote_addr - $remote_user [$time_local] "$request" ' @@ -89,6 +96,7 @@ http { gzip_vary on; # Compress all output labeled with one of the following MIME-types. + # text/html is always compressed by gzip module. gzip_types application/atom+xml application/javascript @@ -114,7 +122,6 @@ http { text/vtt text/x-component text/x-cross-domain-policy; - # text/html is always compressed by gzip module # This should be turned on if you are going to have pre-compressed copies (.gz) of # static files available. If not it should be left off as it will cause extra I/O