Mark Bergsma has submitted this change and it was merged.
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(-)
Approvals:
Mark Bergsma: Looks good to me, approved
jenkins-bot: Verified
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: merged
Gerrit-Change-Id: I9ab5b963fb984f4a8e96d3f148ac9c157b096960
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Mark Bergsma <[email protected]>
Gerrit-Reviewer: Mark Bergsma <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits