Ori.livneh has submitted this change and it was merged.

Change subject: Configure Varnish not to cache scholarship app reqs
......................................................................


Configure Varnish not to cache scholarship app reqs

The cache should vary on cookie, and all requests are cookied, so caching in
Varnish won't help.

Change-Id: Ie5c2e260ae2940ca2bdded5e0599a8cb380e30bb
---
M templates/varnish/misc.inc.vcl.erb
1 file changed, 1 insertion(+), 0 deletions(-)

Approvals:
  Ori.livneh: Looks good to me, approved
  Andrew Bogott: Looks good to me, but someone else must approve
  jenkins-bot: Verified



diff --git a/templates/varnish/misc.inc.vcl.erb 
b/templates/varnish/misc.inc.vcl.erb
index 9aa9a1f..c107c70 100644
--- a/templates/varnish/misc.inc.vcl.erb
+++ b/templates/varnish/misc.inc.vcl.erb
@@ -12,6 +12,7 @@
                set req.backend = tungsten;
        } elsif (req.http.Host == "scholarships.wikimedia.org") {
                set req.backend = zirconium;
+                return (pass);
        } else {
                error 404 "Domain not served here";
        }

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ie5c2e260ae2940ca2bdded5e0599a8cb380e30bb
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Ori.livneh <[email protected]>
Gerrit-Reviewer: Andrew Bogott <[email protected]>
Gerrit-Reviewer: Faidon Liambotis <[email protected]>
Gerrit-Reviewer: Ori.livneh <[email protected]>
Gerrit-Reviewer: jenkins-bot

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

Reply via email to