3 ms·
I agree this is a decent solution, and the one OP compares to is not. But I would have javascript feature detect, and set a cookie based on what it found. Now,
by jrochkind1 12y ago
I agree this is a decent solution, and the one OP compares to is not.
But I would have javascript feature detect, and set a cookie based on what it found. Now, for all but the first page, the server can look at the cookie instead of the User-Agent string. Server just needs to sniff user-agent string if it doesn't (yet) have a cookie.