TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Explainer: Reducing User-Agent Granularity

12 点作者 jimws超过 5 年前

1 comment

mikl超过 5 年前
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 未加载