From c0e5bb8e5900c65d29c41e038d1921c4b472b290 Mon Sep 17 00:00:00 2001 From: Chris Borgia Date: Tue, 17 Feb 2015 01:16:27 -0500 Subject: [PATCH] include more gzip types --- ee/cli/templates/nginx-core.mustache | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/ee/cli/templates/nginx-core.mustache b/ee/cli/templates/nginx-core.mustache index 6c90e51b..557c95a7 100644 --- a/ee/cli/templates/nginx-core.mustache +++ b/ee/cli/templates/nginx-core.mustache @@ -36,4 +36,21 @@ gzip_proxied any; gzip_comp_level 6; 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; +# Compress all output labeled with one of the following MIME-types. +gzip_types + application/atom+xml + application/javascript + application/json + application/rss+xml + application/vnd.ms-fontobject + application/x-font-ttf + application/x-web-app-manifest+json + application/xhtml+xml + application/xml + font/opentype + image/svg+xml + image/x-icon + text/css + text/plain + text/x-component; + # text/html is always compressed by HttpGzipModule \ No newline at end of file