29 ms·
> What I don't like about that is that I generally shy away from doing any sort of "if then" based on browsers' user-agent-string. Can't you just base it on th
by johnday 7y ago
> What I don't like about that is that I generally shy away from doing any sort of "if then" based on browsers' user-agent-string.
Can't you just base it on the "Accepts" header? That's the whole reason it exists, after all.
- social_quotient 7y agoI think this is the right answer and semantically better than parsing user agents, guessing, or other magic.