Gilles has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/225852

Change subject: Fix ICO MIME regexps
......................................................................

Fix ICO MIME regexps

Bug: T63443
Change-Id: I523cdc6c1e23238a0d615ad842588024addbf073
---
M templates/varnish/bits.inc.vcl.erb
M templates/varnish/mobile-frontend.inc.vcl.erb
M templates/varnish/text-frontend.inc.vcl.erb
3 files changed, 3 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/52/225852/1

diff --git a/templates/varnish/bits.inc.vcl.erb 
b/templates/varnish/bits.inc.vcl.erb
index e12c3f6..1a441ee 100644
--- a/templates/varnish/bits.inc.vcl.erb
+++ b/templates/varnish/bits.inc.vcl.erb
@@ -84,7 +84,7 @@
 
 <% if @cluster_options.fetch("do_gzip", false) -%>
        // Compress ico and SVG files
-       if (beresp.http.content-type ~ "^image/(x-icon|svg\+xml)$") {
+       if (beresp.http.content-type ~ 
"^image/(x-icon|vnd\.microsoft\.icon|svg\+xml)$") {
                set beresp.do_gzip = true;
        }
 <% end -%>
diff --git a/templates/varnish/mobile-frontend.inc.vcl.erb 
b/templates/varnish/mobile-frontend.inc.vcl.erb
index da254d1..875d543 100644
--- a/templates/varnish/mobile-frontend.inc.vcl.erb
+++ b/templates/varnish/mobile-frontend.inc.vcl.erb
@@ -128,7 +128,7 @@
 
 <% if @cluster_options.fetch("do_gzip", false) -%>
        // Compress ico and SVG files
-       if (beresp.http.content-type ~ "^image/(x-icon|svg\+xml)$") {
+       if (beresp.http.content-type ~ 
"^image/(x-icon|vnd\.microsoft\.icon|svg\+xml)$") {
                set beresp.do_gzip = true;
        }
 <% end -%>
diff --git a/templates/varnish/text-frontend.inc.vcl.erb 
b/templates/varnish/text-frontend.inc.vcl.erb
index a1e3dcf..1dba1a9 100644
--- a/templates/varnish/text-frontend.inc.vcl.erb
+++ b/templates/varnish/text-frontend.inc.vcl.erb
@@ -134,7 +134,7 @@
        }
 <% if @cluster_options.fetch("do_gzip", false) -%>
                // Compress ico and SVG files
-               if (beresp.http.content-type ~ "^image/(x-icon|svg\+xml)$") {
+               if (beresp.http.content-type ~ 
"^image/(x-icon|vnd\.microsoft\.icon|svg\+xml)$") {
                        set beresp.do_gzip = true;
                }
 <% end -%>

-- 
To view, visit https://gerrit.wikimedia.org/r/225852
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I523cdc6c1e23238a0d615ad842588024addbf073
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Gilles <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to