From 6c1793bb6857868ba31db61e5cc33fe5d01e3096 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C4=83t=C4=83lin=20Mari=C8=99?= Date: Wed, 25 Mar 2015 11:10:01 +0200 Subject: [PATCH] Update the list of resources to be compressed Ref: https://github.com/h5bp/server-configs-apache/blob/a0c4e1719075bf1d97d92a3b0ad225c7bff5dfab/src/web_performance/compression.conf --- nginx.conf | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/nginx.conf b/nginx.conf index dacd9d9..296b7ec 100644 --- a/nginx.conf +++ b/nginx.conf @@ -94,21 +94,36 @@ http { application/atom+xml application/javascript application/json + application/ld+json + application/manifest+json + application/rdf+xml application/rss+xml + application/schema+json + application/vnd.geo+json application/vnd.ms-fontobject application/x-font-ttf + application/x-javascript application/x-web-app-manifest+json application/xhtml+xml application/xml + font/eot font/opentype + image/bmp image/svg+xml + image/vnd.microsoft.icon image/x-icon + text/cache-manifest text/css + text/javascript text/plain - text/x-component; + text/vcard + text/vnd.rim.location.xloc + text/vtt + text/x-component + text/x-cross-domain-policy + text/xml; # text/html is always compressed by HttpGzipModule - # 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 # for the check. It is best if you enable this in a location{} block for