Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/4.6'
Browse files Browse the repository at this point in the history
  • Loading branch information
ViniTou committed Nov 28, 2024
2 parents 31e98b7 + ae7c3c2 commit 94ef6ab
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions resources/platformsh/common/5.0/.platform/varnish.vcl
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion resources/templates/apache2/vhost.template
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@

# Enable gzip encoding
<IfModule mod_deflate.c>
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.
</IfModule>
</VirtualHost>
2 changes: 1 addition & 1 deletion resources/templates/nginx/vhost.template
Original file line number Diff line number Diff line change
Expand Up @@ -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(/|$) {
Expand Down

0 comments on commit 94ef6ab

Please sign in to comment.