App Router caching stops working if I wait 30 seconds before clicking link
Unanswered
Brown bear posted this in #help-forum
Brown bearOP
This is a really weird bug, but if I've got say a blog site with the main page that lists all the blogs and clicking on one takes me to the page for that blog.
- I navigate to a specific Blog -> there is an initial load time -> Blog loads in
- I go back to the list of blogs
- I click on the same blog again, because everything is cached the page loads in instantly
- Then if I go to the blogs list again, and wait like 30 seconds, and click on that same blog again, it is refetching all the data and html, it's no longer getting it from the cache
- Now, unless I hard refresh, everytime i click on that same blog, it wont use the cache
I played around with a few sites using Next 14 and they all had this issue, Next 13 did not.
Here is an example site where the issue exists: https://nexlog.vercel.app/ and the repo https://github.com/harikrishnanssankar/nexlog-nextjs-blog-app
- I navigate to a specific Blog -> there is an initial load time -> Blog loads in
- I go back to the list of blogs
- I click on the same blog again, because everything is cached the page loads in instantly
- Then if I go to the blogs list again, and wait like 30 seconds, and click on that same blog again, it is refetching all the data and html, it's no longer getting it from the cache
- Now, unless I hard refresh, everytime i click on that same blog, it wont use the cache
I played around with a few sites using Next 14 and they all had this issue, Next 13 did not.
Here is an example site where the issue exists: https://nexlog.vercel.app/ and the repo https://github.com/harikrishnanssankar/nexlog-nextjs-blog-app