Mark Bergsma has uploaded a new change for review.
https://gerrit.wikimedia.org/r/55571
Change subject: Test: allow mobile clients to cache favicon.ico and Gadget js
for an hour
......................................................................
Test: allow mobile clients to cache favicon.ico and Gadget js for an hour
Change-Id: I9ab5b963fb984f4a8e96d3f148ac9c157b096960
---
M templates/varnish/mobile-frontend.inc.vcl.erb
1 file changed, 5 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet
refs/changes/71/55571/1
diff --git a/templates/varnish/mobile-frontend.inc.vcl.erb
b/templates/varnish/mobile-frontend.inc.vcl.erb
index b43c4c6..bfb80b4 100644
--- a/templates/varnish/mobile-frontend.inc.vcl.erb
+++ b/templates/varnish/mobile-frontend.inc.vcl.erb
@@ -645,5 +645,10 @@
} else {
set resp.http.Cache-Control = "private, s-maxage=0, max-age=0,
must-revalidate";
}
+
+ /* Temp test */
+ if (req.url == "/favicon.ico" || req.url ~
"^/w/index.php?title=.*Gadget-.*&[0-9]+$") {
+ set resp.http.Cache-Control = "s-maxage=3600, max-age=3600";
+ }
}
--
To view, visit https://gerrit.wikimedia.org/r/55571
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I9ab5b963fb984f4a8e96d3f148ac9c157b096960
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Mark Bergsma <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits