next cache GET route handler with force-dynamic #71050
Unanswered
AndonMitev
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
-
This is my route and wrapper utility function: https://pastebin.com/.
Initially, I didn't have
export const dynamic = 'force-dynamic';
in the code and start facing some caching issues. After adding it, cache was reduced, but I still sometimes receive cached data, while other times the data is fresh.Could this happen because not all CDNs are updated consistently, or is there another possible cause for this partial caching behavior? Any suggestions on how to fix it?
Beta Was this translation helpful? Give feedback.
All reactions