BBlack has uploaded a new change for review.
https://gerrit.wikimedia.org/r/305049
Change subject: Chrome/41 fix: move to backend_response
......................................................................
Chrome/41 fix: move to backend_response
Bug: T141786
Change-Id: I7b98f811b099aabdb03a7d57b0c4ed9acee1c624
---
M templates/varnish/text-frontend.inc.vcl.erb
1 file changed, 5 insertions(+), 5 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet
refs/changes/49/305049/1
diff --git a/templates/varnish/text-frontend.inc.vcl.erb
b/templates/varnish/text-frontend.inc.vcl.erb
index 5db6b20..f28e077 100644
--- a/templates/varnish/text-frontend.inc.vcl.erb
+++ b/templates/varnish/text-frontend.inc.vcl.erb
@@ -196,6 +196,11 @@
<% end -%>
sub cluster_fe_backend_response {
+ // Experiment on dealing with a buggy UA that's spamming requests in
T141786
+ if (req.http.User-Agent ~ "Windows NT .*Chrome/41\.0\.2272\.76" &&
req.url == "/" && beresp.status == 301) {
+ <%= error_synth(400, "Buggy request, please report at
https://phabricator.wikimedia.org/T141786") -%>
+ }
+
call text_common_backend_response;
return (deliver);
@@ -240,11 +245,6 @@
if (req.http.X-Orig-Cookie !~ "(^|;\s*)GeoIP=[^;]"
&& req.http.Cookie !~ "(^|;\s*)GeoIP=[^;]") {
call geoip_cookie;
- }
-
- // Experiment on dealing with a buggy UA that's spamming requests in
T141786
- if (req.http.User-Agent ~ "Windows NT .*Chrome/41\.0\.2272\.76" &&
req.url == "/" && resp.status == 301) {
- <%= error_synth(400, "Buggy request, please report at
https://phabricator.wikimedia.org/T141786") -%>
}
}
--
To view, visit https://gerrit.wikimedia.org/r/305049
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I7b98f811b099aabdb03a7d57b0c4ed9acee1c624
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