Hey folks, I'm having issues caching fetch requests within Server Components when we deploy to CF Pa
Hey folks, I'm having issues caching fetch requests within Server Components when we deploy to CF Pages. The Next docs mention time-based revalidation, e. g.
This works as expected in dev - the server will only re-fetch 60 seconds after the last fetch occurred. Once we deploy though, each request to the page makes a fetch every time.
Is this where the KV bindings come into play? I don't believe my team set that up.
const users = await fetch(USERS_URL, { next: { revalidate: 60 } }).then(…)This works as expected in dev - the server will only re-fetch 60 seconds after the last fetch occurred. Once we deploy though, each request to the page makes a fetch every time.
Is this where the KV bindings come into play? I don't believe my team set that up.