# datasette #3046: Don't serve link: rel=next HTTP headers to Firefox for HTML pages

DevFeed: [datasette #3046: Don't serve link: rel=next HTTP headers to Firefox for HTML pages](<https://devfeed.tech/articles/datasette-3046-don-t-serve-link-rel-next-http-headers-to-firefox-for-html-pages-122442.md>)

Original publisher: [Read original article](<https://simonwillison.net/2026/Nov/7/link-rel-next/>)

Author: Simon Willison

Published: 2026-11-07T23:57:46Z

Content type: article

Language: en

Sources: [Simon Willison's Weblog](<https://devfeed.tech/sources/simon-willison-s-weblog.md>)

Topics: [Firefox](<https://devfeed.tech/topics/firefox.md>), [HTTP](<https://devfeed.tech/topics/http.md>), [performance-optimization](<https://devfeed.tech/topics/performance-optimization.md>), [Server-side rendering](<https://devfeed.tech/topics/server-side-rendering.md>), [HTML](<https://devfeed.tech/topics/html.md>)

Tags: [datasette](<https://devfeed.tech/tags/datasette.md>), [datasette-1-556](<https://devfeed.tech/tags/datasette-1-556.md>), [fetching](<https://devfeed.tech/tags/fetching.md>), [firefox](<https://devfeed.tech/tags/firefox.md>), [firefox-103](<https://devfeed.tech/tags/firefox-103.md>), [headers](<https://devfeed.tech/tags/headers.md>), [html](<https://devfeed.tech/tags/html.md>), [html-100](<https://devfeed.tech/tags/html-100.md>), [http](<https://devfeed.tech/tags/http.md>), [link](<https://devfeed.tech/tags/link.md>), [mozilla](<https://devfeed.tech/tags/mozilla.md>), [mozilla-118](<https://devfeed.tech/tags/mozilla-118.md>), [next](<https://devfeed.tech/tags/next.md>), [pages](<https://devfeed.tech/tags/pages.md>)

## AI overview

Datasette's `rel="next"` HTTP `Link` header caused Firefox to prefetch the next page of table rows, even though only a tiny fraction of visitors would follow the next link. That means unnecessary data is fetched and the server renders a page that may be discarded. The author traces the behavior to a Firefox issue reported as open for 24 years, which also references the author's 2002 complaint about the feature. The excerpt reports the problem but does not describe a fix.

## Source excerpt

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! Tags: firefox, html, mozilla, datasette