Faidon Liambotis has uploaded a new change for review.

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


Change subject: varnish: s/beresp/resp/ in vcl_deliver (doh)
......................................................................

varnish: s/beresp/resp/ in vcl_deliver (doh)

Change-Id: I9e69cf11b87aef66eb248ba1ba7e59542f3c6646
---
M templates/varnish/mobile-frontend.inc.vcl.erb
1 file changed, 5 insertions(+), 5 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/93/86193/1

diff --git a/templates/varnish/mobile-frontend.inc.vcl.erb 
b/templates/varnish/mobile-frontend.inc.vcl.erb
index 6aa9433..fed5e13 100644
--- a/templates/varnish/mobile-frontend.inc.vcl.erb
+++ b/templates/varnish/mobile-frontend.inc.vcl.erb
@@ -133,16 +133,16 @@
 }
 
 sub vcl_deliver {
-       # remove X-CS & X-Analytics from beresp if they happen to have it.
-       # We used to incorrectly set them in vcl_fetch(), which means that our
+       # remove X-CS & X-Analytics from resp if they happen to have it.  We
+       # used to incorrectly set them in vcl_fetch(), which means that our
        # cache is now poisoned with non-varied cached objects that have this
        # incorrectly set with random carriers. Clean up after ourselves.
-       unset beresp.http.X-CS;
+       unset resp.http.X-CS;
        if (req.http.X-Analytics) {
                # FIXME: replace with std.log()
-               set beresp.http.X-Analytics = req.http.X-Analytics;
+               set resp.http.X-Analytics = req.http.X-Analytics;
        } else {
-               unset beresp.http.X-Analytics;
+               unset resp.http.X-Analytics;
        }
 
        if (resp.http.Cache-Control ~ "s-maxage=[1-9]") {

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

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

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

Reply via email to