Client Router Cache is not working after 30 seconds
Unanswered
Brown Jay posted this in #help-forum
Brown JayOP
With dynamic routes, client cache works for 30 seconds. But after 30 seconds it's not keeping the cache. If you keep trying sometimes it works for 3-5 seconds but then keeps requesting the page from the server randomly. For a reference check the attached video. Playground uses 14.0.3-canary.7 but it's also reproducible with 14.1.0.
7 Replies
Brown JayOP
Seems like this issue is related: https://github.com/vercel/next.js/issues/58723
Brown JayOP
This is literally https://app-router.vercel.app/ssr
@Brown Jay With dynamic routes, client cache works for 30 seconds. But after 30 seconds it's not keeping the cache. If you keep trying sometimes it works for 3-5 seconds but then keeps requesting the page from the server randomly. For a reference check the attached video. Playground uses 14.0.3-canary.7 but it's also reproducible with 14.1.0.
there is an issue on github for this
https://github.com/vercel/next.js/issues/58969
https://github.com/vercel/next.js/issues/58969
try
<Link prefetch /> and it should work as expected but the cache duration will become 5minBrown JayOP
Thanks, its very strange that this kind of bug can stay for months.
Holland Lop
it’s funny that feature is broken on something made by vercel