Why the fetch request is not Caching the data? #72197
Unanswered
unknownZeyad
asked this question in
App Router
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.
-
Problem with Revalidation and Fresh Data in Next.js Server Component
I'm working on a Next.js server component where I need two things:
However, I’m finding that either everything refreshes each time (losing caching), or everything caches together, including Math.random(). I've tried using { next: { revalidate: 5 } } and dynamic = "force-dynamic", but I can't seem to achieve both. Any ideas on how to split caching behavior for fetch and other dynamic values within the same server component?
Beta Was this translation helpful? Give feedback.
All reactions