News for hackers. Stuff that matters.
Re:History of the browser user-agent string (2008) by shakna on Saturday September 28, 2019 @06:17AM (#21099528)
Several Google sites use user-agent sniffing.

I've seen comments from Youtube devs that say progressive enhancement is too slow, so they use the useragent to choose what bundle to send.

Re:History of the browser user-agent string (2008) by danShumway on Saturday September 28, 2019 @10:57AM (#21100614)
It's worth calling Google out particularly here, because not only do they do useragent sniffing, they also launch new services that use useragent sniffing to block any browsers that aren't on a compatibility whitelist.

I get it, sometimes sniffing is necessary for some things. But it's embarrassing to see a company of Google's size and caliber so reliant on it, and to see their developers so quickly accept that they're just going to abandon what is one of the cornerstones of good web development.

Re:History of the browser user-agent string (2008) by daxterspeed on Saturday September 28, 2019 @07:33AM (#21099786)
YouTube could likely use Service Workers in modern browsers to determine what bundle to load. If so then our modern browsers could simply send [browser]/[major version] (eg. Google Chrome/78 or perhaps Blink/78) while old browsers continue to send their legacy mess.