Yes we implemented support for the fetch
Yes we implemented support for the fetch cache a long time ago. Please send code snippets of what you're doing
4 Replies
Context: it works locally but not in production. I have a locations page and a create locations page, when creating a new location I would like it to update the locations page showing the newly added location. Without having to use useStates.
I want the flow to be like this:
Visit locations page -> locations get cached -> create new location -> new location gets revalidated in the cache -> user is redirect to locations page and is shown all locations including newly added location.
Location page:
Create location:
Api for locations
which bit is the part that's supposed to be cached?
I seem to have resolved the issue, when I found this in the next-on-pages docs it became clear to me that I had to add a domain and the KV
GitHub
next-on-pages/packages/next-on-pages/docs/caching.md at main · clou...
CLI to build and develop Next.js apps for Cloudflare Pages - cloudflare/next-on-pages