Zach Leatherman :11ty: on Nostr: A few things here: Vercel’s Edge Network cache is segmented into 18 regions. ...
A few things here: Vercel’s Edge Network cache is segmented into 18 regions. Further, the cache eviction policy is “best-effort” and assets may be evicted before they’re stale:
https://vercel.com/docs/edge-network/caching#limitsI suspect I was getting very few cache hits—not ideal at all for a screenshots service (or any resource intensive serverless function?). I wanted those images to request once and cache for as long as possible.
Published at
2024-08-04 00:38:46Event JSON
{
"id": "0b08d73a7c1e1d233edb869bcbfd4806b99f13250a1e0512b3da52706fc79f7f",
"pubkey": "51b66b5d468ae19d4dee4ffe19ec520a829c415d50ed105666ba730310f6475b",
"created_at": 1722731926,
"kind": 1,
"tags": [
[
"e",
"d1e768ac7a0de671382bfee005cf151b7fb4961f80a83e66fc2be1657114e0ae",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://fediverse.zachleat.com/users/zachleat/statuses/112900959506802735",
"activitypub"
]
],
"content": "A few things here: Vercel’s Edge Network cache is segmented into 18 regions. Further, the cache eviction policy is “best-effort” and assets may be evicted before they’re stale: https://vercel.com/docs/edge-network/caching#limits\n\nI suspect I was getting very few cache hits—not ideal at all for a screenshots service (or any resource intensive serverless function?). I wanted those images to request once and cache for as long as possible.",
"sig": "684c475208f12fddd937059883b1c6145fb881e60eb8a7fe2578e33086e12f29e41b395ff4fa84d304bda20bd770072f06d8cfe8a026e35682f05833c57577c2"
}