Skip to content

Commit ae7c3c2

Browse files
authored
IBX-9195: Excluded api and json from compression (#86)
1 parent 1bf4267 commit ae7c3c2

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

resources/platformsh/common/4.6/.platform/varnish.vcl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,7 @@ sub vcl_backend_response {
133133

134134
// Compressing the content
135135
if (beresp.http.Content-Type ~ "application/javascript"
136-
|| beresp.http.Content-Type ~ "application/json"
137136
|| beresp.http.Content-Type ~ "application/vnd.ms-fontobject"
138-
|| beresp.http.Content-Type ~ "application/vnd.ibexa.api"
139137
|| beresp.http.Content-Type ~ "application/x-font-ttf"
140138
|| beresp.http.Content-Type ~ "image/svg+xml"
141139
|| beresp.http.Content-Type ~ "text/css"

resources/templates/apache2/vhost.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119

120120
# Enable gzip encoding
121121
<IfModule mod_deflate.c>
122-
AddOutputFilterByType DEFLATE text/plain text/css application/json text/javascript application/javascript text/xml application/xml application/xml+rss
122+
AddOutputFilterByType DEFLATE text/plain text/css text/javascript application/javascript text/xml application/xml+rss
123123
# NOTE: Using gzip on text/html can be a security issue. See http://breachattack.com.
124124
</IfModule>
125125
</VirtualHost>

resources/templates/nginx/vhost.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ server {
2525

2626
# Gzip is enabled by default on most platforms, so here we just specify mime types to compress.
2727
# NOTE: Using gzip on text/html can be a security issue, unless you somehow pad. See http://breachattack.com
28-
gzip_types text/plain text/css application/json text/javascript application/javascript text/xml application/xml application/xml+rss;
28+
gzip_types text/plain text/css text/javascript application/javascript text/xml application/xml+rss;
2929

3030
location / {
3131
location ~ ^/index\.php(/|$) {

0 commit comments

Comments
 (0)