diff --git a/resources/platformsh/common/4.6/.platform/varnish.vcl b/resources/platformsh/common/4.6/.platform/varnish.vcl index 36a571d..30f9b5e 100644 --- a/resources/platformsh/common/4.6/.platform/varnish.vcl +++ b/resources/platformsh/common/4.6/.platform/varnish.vcl @@ -133,9 +133,7 @@ sub vcl_backend_response { // Compressing the content if (beresp.http.Content-Type ~ "application/javascript" - || beresp.http.Content-Type ~ "application/json" || beresp.http.Content-Type ~ "application/vnd.ms-fontobject" - || beresp.http.Content-Type ~ "application/vnd.ibexa.api" || beresp.http.Content-Type ~ "application/x-font-ttf" || beresp.http.Content-Type ~ "image/svg+xml" || beresp.http.Content-Type ~ "text/css" diff --git a/resources/templates/apache2/vhost.template b/resources/templates/apache2/vhost.template index 4484f0b..f3688b7 100644 --- a/resources/templates/apache2/vhost.template +++ b/resources/templates/apache2/vhost.template @@ -119,7 +119,7 @@ # Enable gzip encoding - AddOutputFilterByType DEFLATE text/plain text/css application/json text/javascript application/javascript text/xml application/xml application/xml+rss + AddOutputFilterByType DEFLATE text/plain text/css text/javascript application/javascript text/xml application/xml+rss # NOTE: Using gzip on text/html can be a security issue. See http://breachattack.com. diff --git a/resources/templates/nginx/vhost.template b/resources/templates/nginx/vhost.template index 7224af1..e130dae 100644 --- a/resources/templates/nginx/vhost.template +++ b/resources/templates/nginx/vhost.template @@ -25,7 +25,7 @@ server { # Gzip is enabled by default on most platforms, so here we just specify mime types to compress. # NOTE: Using gzip on text/html can be a security issue, unless you somehow pad. See http://breachattack.com - gzip_types text/plain text/css application/json text/javascript application/javascript text/xml application/xml application/xml+rss; + gzip_types text/plain text/css text/javascript application/javascript text/xml application/xml+rss; location / { location ~ ^/index\.php(/|$) {