ISR - Build Cache Issue: Pages Re-fetching on First Access #69878
Unanswered
dawid-jazdzewski-BO
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I’m experiencing an issue with Incremental Static Regeneration (ISR) with Next 14 and build caching in Next.js. Despite setting up generateStaticParams and configuring the revalidate time to 86400 seconds (24 hours), the page seems to rebuild during the build process, as evidenced by logs from my CMS fetching the appropriate content. However, upon first access to the page, it re-fetches the content as if it wasn’t already built.
I’ve set NEXT_PRIVATE_DEBUG_CACHE=1 and observed the following in the build logs:
And upon the first access to the page, I see:
It appears that the cache set operation isn’t being triggered correctly during the build, leading to content being fetched again on first access. Could anyone provide insights into why this might be happening or suggest potential solutions?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions