hiw3c 日报精选
Simon Willison 网页快照

数据集 #3046:不要为HTML页面在Firefox中提供link: rel=next HTTP头

原文标题 · datasette #3046: Don't serve link: rel=next HTTP headers to Firefox for HTML pages

数据集 #3046:不要为HTML页面在Firefox中提供rel=next HTTP头。今天我在查看Firefox网络面板时注意到,对数据集表页的请求会触发对该表下一行数据的HTTP预取。这一情况发生是因为数据集页提供如下类型的HTTP链接头:link: <https://latest.datasette.io/fixtures/compound_three_primary_keys?_next

来源:Simon Willison · simonwillison.net

正文为英文,可一键机器翻译(仅首次需要等待)

Simon Willison’s Weblog

datasette #3046: Don't serve link: rel=next HTTP headers to Firefox for HTML pages . I was looking at the Firefox network panel today when I noticed that requests to a Datasette table page were triggering an HTTP prefetch to the next page of rows in that table.

This was happening because Datasette pages serve an HTTP link header like this:

link: <https://latest.datasette.io/fixtures/compound_three_primary_keys?_next=a%2Cd%2Cv>; rel="next"

This is bad. A tiny fraction of the visitors to one of those pages will click the "next" link, which means their browser is fetching unnecessary data and the Datasette server is having to render an entire page that then gets thrown away.

I dug in and learned that Firefox has an issue that has been open for 24 years about this behavior...

And one of the early comments on that issue links to my blog post from 2002 complaining about this feature. I hadn't just forgotten that I had written about it, I had forgotten the feature entirely!

Recent articles

Qwen 3.8 27B on my laptop can interpret model weights, too - 3rd November 2026

The U.S. Census Bureau and “Super Intelligence” - 2nd November 2026

The October inflection point for vibe game development - 28th October 2026

Battle Drones - a vibe coded RTS with audio-based multiplayer - 20th October 2026

This is a link post by Simon Willison, posted on 7th November 2026 .

Monthly briefing

Sponsor me for $10/month and get a curated email digest of the month's most important LLM developments.