Josh 🌯 on Nostr: I was configuring cache-control headers today, I knew I would need ...
I was configuring cache-control headers today, I knew I would need stale-while-revalidate, but I thought that covered me if my origin was down. Turns out it doesn't. I found there's also stale-if-error, that will serve stale cache if your origin is down. #webdev
Published at
2024-09-14 14:32:17Event JSON
{
"id": "3b5631d97f3c835646fd36093e8d51becbbed3028c0dbc107444894ea3028904",
"pubkey": "c08fa1e2ab30584e267f6ca38d0eaeda00ec7f84b897ef5f6cd673f02c6fa46f",
"created_at": 1726324337,
"kind": 1,
"tags": [
[
"t",
"webdev"
],
[
"proxy",
"https://sideofburritos.social/users/josh/statuses/113136391799350847",
"activitypub"
]
],
"content": "I was configuring cache-control headers today, I knew I would need stale-while-revalidate, but I thought that covered me if my origin was down. Turns out it doesn't. I found there's also stale-if-error, that will serve stale cache if your origin is down. #webdev",
"sig": "a10d056a63611ca8aaa113ee9e0bbd3ea6f1992714b85c3b73101b98977344b4fe3ae429b8ac3b6483f2c7c3629cb22bf876541e88850c000b2af6d0e0dcb5b5"
}