Datasette stops serving link: rel=next headers to Firefox for HTML pages
Original title: datasette #3046: Don't serve link: rel=next HTTP headers to Firefox for HTML pages
Fix for #3046 prevents unnecessary prefetch requests to the next table page in Firefox.
Datasette served HTTP link headers like rel="next" to Firefox on table pages. This triggered prefetching of the next page of rows. Most visitors did not click the link, wasting server rendering time as the page was fetched and discarded. The change resolves the issue.
- Affects only HTML table pages.
- Firefox network panel revealed the prefetch.
- Server rendered unnecessary full pages.
- Fix targets issue #3046.
From the original article
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.
simonwillison.net
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.