BBlack has uploaded a new change for review.

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

Change subject: cache_misc: exclude GeoIP cookie from pass as well
......................................................................

cache_misc: exclude GeoIP cookie from pass as well

Change-Id: I1c73fd24f65122eb0fc81d814c47fd3c1b5e4eea
---
M templates/varnish/misc-common.inc.vcl.erb
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/68/301368/1

diff --git a/templates/varnish/misc-common.inc.vcl.erb 
b/templates/varnish/misc-common.inc.vcl.erb
index fd4a219..fcb516a 100644
--- a/templates/varnish/misc-common.inc.vcl.erb
+++ b/templates/varnish/misc-common.inc.vcl.erb
@@ -24,8 +24,8 @@
     }
 
     // don't cache cookie requests, but ignore google analytics cookies and our
-    // own global WMF-Last-Access and CP cookies.
-    set req.http.NC-Cookie = regsuball(req.http.Cookie, 
"(?i)(^|;\s*)(_ga[-_a-z]*|_utm[-_a-z]*|WMF-Last-Access|CP)=[^;]*", "");
+    // own global WMF-Last-Access, GeoIP, and CP cookies.
+    set req.http.NC-Cookie = regsuball(req.http.Cookie, 
"(?i)(^|;\s*)(_ga[-_a-z]*|_utm[-_a-z]*|WMF-Last-Access|GeoIP|CP)=[^;]*", "");
     set req.http.NC-Cookie = regsub(req.http.NC-Cookie, "^;?\s*", "");
     if (req.http.NC-Cookie != "") {
         unset req.http.NC-Cookie;

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

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

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

Reply via email to