Mark Bergsma has submitted this change and it was merged. Change subject: Cap the cache TTL to 300s on mobile frontends ......................................................................
Cap the cache TTL to 300s on mobile frontends Change-Id: Iddbad37b357c5ff53b8e05028f715ced3df7f747 --- 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 a6e8332..f5933db 100644 --- a/templates/varnish/mobile-frontend.inc.vcl.erb +++ b/templates/varnish/mobile-frontend.inc.vcl.erb @@ -616,6 +616,11 @@ } sub vcl_fetch { + /* Cap the cache TTL to 300s on frontends */ + if (beresp.ttl > 300) { + set beresp.ttl = 300; + } + set beresp.http.X-Device = req.http.X-Device; set beresp.http.X-Carrier = req.http.X-Carrier; set beresp.http.X-CS = req.http.X-CS; -- To view, visit https://gerrit.wikimedia.org/r/55551 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Iddbad37b357c5ff53b8e05028f715ced3df7f747 Gerrit-PatchSet: 1 Gerrit-Project: operations/puppet Gerrit-Branch: production Gerrit-Owner: Mark Bergsma <m...@wikimedia.org> Gerrit-Reviewer: Mark Bergsma <m...@wikimedia.org> Gerrit-Reviewer: jenkins-bot _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits