-
GoalsOur app is quite dynamic & personalized and we can't successfully use Most, if not all, issues could be solved if you gave us the option to disable client cache and just let every route change go to server. BackgroundThere are no alternatives. We might as well disable soft navigation and rely on hard navigation only. But then there is little point in using Next.js. ProposalAdd a configuration setting 'disableRouterCache' to instruct Next.js to fetch every page from server rather than looking to client cache. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
+1 |
Beta Was this translation helpful? Give feedback.
-
Give as an option to opt out per client component too |
Beta Was this translation helpful? Give feedback.
-
Did everybody read and follow this discussion? #54075 |
Beta Was this translation helpful? Give feedback.
-
Following up here: the Client Router Cache no longer caches Page components by default. You can opt into the previous Client Router Cache behavior by setting the following configuration: const nextConfig = {
experimental: {
staleTimes: {
dynamic: 30,
},
},
};
module.exports = nextConfig; |
Beta Was this translation helpful? Give feedback.
Following up here: the Client Router Cache no longer caches Page components by default.
You can opt into the previous Client Router Cache behavior by setting the following configuration: