Preloader
datasette #3046: Don't serve link: rel=next HTTP headers to Firefox for HTML pages
Listen to this articleReel generating soon · instant preview ~1 min

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

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.

Source: Simon Willison — Read the full article on the original site ↗

Get the best of this topic in your inbox

Join the newsletter. A short, useful digest, no spam.