Francisco Tolmasky on Nostr: Almost all blogs put “next page” URLs at /2, /3, … /n. These are *bad URLs*, ...
Almost all blogs put “next page” URLs at /2, /3, … /n. These are *bad URLs*, since they’re constantly changing. Instead, do the following: choose how many posts you want per page (p), as usual. But make an exception for the main page, which waits to hit 2*p posts before dumping p posts to the next page all at once. Now your “next pages” won’t change, so they can have persistent URLs! So, number your URLs in *decreasing* order: /n, /n-1, … /1. As a bonus, “/1” conveniently has your first posts!
Published at
2024-11-03 23:57:31Event JSON
{
"id": "33c03ecc1f0853bb9b8216b8ba12f42b2a4fac328174514f6f307b9a3b516d36",
"pubkey": "d450b72183502fa8197a12157ac963dc34153647391a3345cff83e78fd740c40",
"created_at": 1730678251,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.social/users/tolmasky/statuses/113421729858100967",
"activitypub"
]
],
"content": "Almost all blogs put “next page” URLs at /2, /3, … /n. These are *bad URLs*, since they’re constantly changing. Instead, do the following: choose how many posts you want per page (p), as usual. But make an exception for the main page, which waits to hit 2*p posts before dumping p posts to the next page all at once. Now your “next pages” won’t change, so they can have persistent URLs! So, number your URLs in *decreasing* order: /n, /n-1, … /1. As a bonus, “/1” conveniently has your first posts!",
"sig": "e3ea1c647cd1bdea049aa068968e826f4db5addf9d645963fda8062c8e9d00eacbc7319316c8228f34cae2a508b80c8533f18984a29e34bc6deb64499a7e69f5"
}