Caching rsc routes in Next.js

I created a caching rule to cache the _rsc= requests which seems to cache fine, but when I click on any of the <Link href on the application, it reload the entire app instead the SPA as it was working without caching or when I open the application on preview mode using pages.dev domain. See seems like the issue is caused by the caching. Any suggestion? Video - https://jam.dev/c/e22936e9-9f5b-4e6d-af26-e19482fa8617
Jam
Jam | Console logs, network requests, and more
Click this link to see the video on app.dayschedule.in, with console logs, network tab and device information.
No description
3 Replies
James
James2w ago
Next.js probably doesn't like the cached response and is so re-fetching the entire route
Vikash
VikashOP2w ago
Not just entire route. It's reloading the entire app, any suggestion why it don't like the cached version? if I can make some changes in the configuration kind of browser refresh
Vikash
VikashOP2w ago
GitHub
Using CDN like CloudFront, CloudFlare on App Directory breaks every...
Hello this is my first PR, sorry about the mess :) What? With app directory being used for production app, we want to add CDN to cache HTML responses (yes we can leverage static rendering etc. + w...

Did you find this page helpful?