5 ms·
The User-Agent header was a mistake. Servers shouldn't care what my client is, only that it speaks well-formed HTTP.
by Pete_D 7y ago
The User-Agent header was a mistake. Servers shouldn't care what my client is, only that it speaks well-formed HTTP.
- PretzelFisch 7y agoThe servers care because for many years clients had no guarantee of handling well-formed html and javascript.
- 0x00000000 7y agoIt’s still a bandaid solution that makes the problem even worse by increasing fragmentation. It’s the best way to make sure browsers never follow any standard and nothing ever gets fixed by shifting responsibility to hundreds of millions of websites individually rather than a few clients
- paulryanrogers 7y agoThis. It reminds me of the recycling campaigns shifting responsibility to the consumer with the transition from glass to plastic. As a web developer though I know the agent shortcut is tempting. Without it I imagine we'd have to wait for a quorum of popular browsers before dropping feature detection for any given capability.