4 ms·
Yes but you should be testing browser capabilities not user agents.
by maxk42 8y ago
Yes but you should be testing browser capabilities not user agents.
- gtirloni 8y agoTotally agree. https://developer.mozilla.org/en-US/docs/Web/HTTP/Browser_detection_using_the_user_agent https://developer.mozilla.org/en-US/docs/Web/HTTP/Browser_de...
- mattmanser 8y agoThe requires more steps and a slower process. User-agent is a one step process. Browser capabilities means returning something back to the browser and potentially coming back to the server. While it has obviously been abused, neither way is ideal. There's no way for a server to say "tell me the browser capabilities before I serve you the request".