Cache on Cloudflare Pages #11476
Unanswered
carstenjaksch
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am having a hard time figuring out the best way to cache my data on Cloudflare Pages.
What I want to do is something similar to ISR on Vercel. The cache does not expire and I programmatically revalidate after saving a page in the CMS.
This is my load function:
I know that I could set
cache-control
headers and Cloudflare automatically conforms to that. But it seems I cannot tell Cloudflare to hold the cache forever and have a way to manually revalidate.As caching is an important topic, I suggest adding a section about that to the adapter-cloudflare docs.
Beta Was this translation helpful? Give feedback.
All reactions