5 ms·
> When I got started with the web 15 years ago, it was advised everywhere not to rely on user agent strings and rely on feature detection instead, Which is rea
by fiedzia 4y ago
> When I got started with the web 15 years ago, it was advised everywhere not to rely on user agent strings and rely on feature detection instead,
Which is reasonable advice for a code running in a browser, not for a proxy/CDN (and you don't want proxy inserting it's own js).
- jraph 4y agoUA detection in the backend has also been frawned upon, it's not limited to code running in the browser. And a proxy/CDN should not be doing something else than proxying requests and serving files. Workarounds are fine, but that's what they are.
- fiedzia 4y agoTo get it working client-side you'd need to change the app, while the whole premise here is that you don't have to (and often can't). One point tracking what UA string are here and what they need is better than expecting every app author to handle this properly.