From fdf16cd9597a268c2aaaca765915162943e11c11 Mon Sep 17 00:00:00 2001 From: William Blythe Date: Sat, 22 Dec 2018 08:25:10 +1100 Subject: [PATCH] maybe --- nginx.conf | 32 +------------------------------- 1 file changed, 1 insertion(+), 31 deletions(-) diff --git a/nginx.conf b/nginx.conf index 06c52e92..535e2e4b 100644 --- a/nginx.conf +++ b/nginx.conf @@ -68,36 +68,7 @@ http { # Compress all output labeled with one of the following MIME-types. # text/html is always compressed by gzip module. # Default: text/html - gzip_types - application/atom+xml - application/javascript - application/json - application/ld+json - application/manifest+json - application/rss+xml - application/geo+json - application/vnd.ms-fontobject - application/x-font-ttf - application/x-web-app-manifest+json - application/xhtml+xml - application/xml - application/rdf+xml - font/collection - font/opentype - font/otf - font/ttf - image/bmp - image/svg+xml - image/x-icon - text/cache-manifest - text/css - text/javascript - text/plain - text/vcard - text/vnd.rim.location.xloc - text/vtt - text/x-component - text/x-cross-domain-policy; + gzip_types *; # 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 @@ -112,7 +83,6 @@ http { index index.html; location ~* \.(?:manifest|appcache|html?|xml|json|css|js|map|jpg|jpeg|gif|png|ico|svg|eot|ttf|woff|woff2)$ { - expires -1; add_header Access-Control-Allow-Origin *; add_header Access-Control-Allow-Credentials true; add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS';