TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Explainer: Reducing User-Agent Granularity

12 pointsby jimwsover 5 years ago

1 comment

miklover 5 years ago
Why not replace the User-Agent with <i>nothing</i>?<p>I’ve been a full-time web dev since 2005, and I have never needed to sniff around in the User-Agent string. Having the <i>server</i> care about what browser is on the other end is an anti-pattern, makes life difficult for browser-developers (and caching systems), and helps creepy tracking software fingerprint people.<p>So instead of weighing down HTTP requests with a bunch of new headers next to no one will need, I think we should instead move to end browser-sniffing. Fix the User-Agent string like OP proposes, but add nothing to replace it.
评论 #21782595 未加载
评论 #21782610 未加载