Cache · Cloudflare Workers docs

We don't currently support caching server-side, but I'll likely add it soon. However, our server-side cache does not support SWR: https://developers.cloudflare.com/workers/runtime-apis/cache/#put
Cache · Cloudflare Workers docs
Documentation for Cloudflare Workers, a serverless execution environment that allows you to create entirely new applications or augment existing ones without configuring or maintaining infrastructure.
3 Replies
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
juanferreras
juanferreras3y ago
I could be wrong, but I think SWR as a value for Cache-Control still works slightly differently in Cloudflare (see https://community.cloudflare.com/t/when-will-cloudflare-fully-support-stale-while-revalidate-with-asynchronous-background-revalidation/287764, might not be up to date) I think for an ISR replacement (and assuming Next 13 does something similar but just at the component-level with React Server Components), relying on R2/KV storage might be a better alternative
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server