Mark Bergsma has uploaded a new change for review.
https://gerrit.wikimedia.org/r/65823
Change subject: Add all mobile UAs currently listed in the Squid configuration
......................................................................
Add all mobile UAs currently listed in the Squid configuration
Change-Id: I75481495b7f1bd8379426e44d3aad1da63527bac
---
M templates/varnish/text-frontend.inc.vcl.erb
1 file changed, 2 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet
refs/changes/23/65823/1
diff --git a/templates/varnish/text-frontend.inc.vcl.erb
b/templates/varnish/text-frontend.inc.vcl.erb
index e8d2022..05e8d82 100644
--- a/templates/varnish/text-frontend.inc.vcl.erb
+++ b/templates/varnish/text-frontend.inc.vcl.erb
@@ -3,7 +3,8 @@
include "errorpage.inc.vcl";
sub mobile_redirect {
- if ((req.http.User-Agent ~ "mobi" || req.http.Accept ~ "vnd.wap.wml")
+ if ((req.http.User-Agent ~
"(?i)(mobi|phone|android|ipod|webos|palm|opera.m|semc-browser|playstation|nintendo|blackberry|bada|meego|vodafone|docomo|samsung|alcatel|motor|huawei|audiovox|philips|mot-|cdm-|sagem-|htc[-_]|ngm_|mmp/|up.browser|symbian|midp|kindle|softbank|sec-|240x240|240x320|320x320|ericsson|panasonic|hiptop|portalmmm|kddi-|benq|compal-|sanyo|sharp|teleca|mitsu|sendo"
+ || req.http.User-Agent ~ "^(lge?|sie|nec|sgh|pg)-" ||
req.http.Accept ~ "vnd.wap.wml")
&& req.http.User-Agent !~
"(iPad|Android.3|(?i)tablet|(?i)(?!google)bot|PlayBook|Wii)"
&& req.http.Cookie !~
"(stopMobileRedirect=true|mf_useformat=desktop)"
&& req.url ~ "^/wiki/") {
--
To view, visit https://gerrit.wikimedia.org/r/65823
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I75481495b7f1bd8379426e44d3aad1da63527bac
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Mark Bergsma <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits