Closed
Bug 640034
Opened 14 years ago
Closed 14 years ago
stage webofwonder.org write a trafficscript for mobile
Categories
(mozilla.org Graveyard :: Server Operations, task)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: ozten, Assigned: oremj)
References
()
Details
Following in the footsteps of Bug#626871...
We need Zeus to set do UA and Cookie sniffing for mobile.
This is part of the mobile release in 2 weeks.
Reporter | ||
Comment 1•14 years ago
|
||
In Bug#626871#c3 I think I see a bug.
http.addResponseHeader("Vary", "User-Agent");
Shouldn't that line execute for all requests?
Updated•14 years ago
|
Assignee: server-ops → jeremy.orem+bugs
Reporter | ||
Comment 2•14 years ago
|
||
We are updating stage to mobile code.
This won't work properly until Zeus' traffic script is updated on stage.
Updated•14 years ago
|
Severity: minor → major
Assignee | ||
Comment 3•14 years ago
|
||
Added this to stage:
$ua_f = "(android|fennec|iemobile|iphone|opera (mini|mobi))";
$mc_f = "mamo";
$ua = string.lowercase(http.getHeader( "User-Agent" ));
$mc = http.getCookie($mc_f);
if(($mc != "off" && string.regexmatch($ua, $ua_f)) || $mc == "on") {
http.addHeader("X-Mobile", 1);
http.cache.setkey("mobile");
http.addResponseHeader("Vary", "Cookie,User-Agent");
}
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 4•14 years ago
|
||
Awesome, thanks!
If you're still in there, can you add ipad?
$ua_f = "(android|fennec|iemobile|ipad|iphone|opera (mini|mobi))";
Assignee | ||
Comment 5•14 years ago
|
||
yeah, done.
Updated•10 years ago
|
Product: mozilla.org → mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•