next cache GET route handler with force-dynamic
Unanswered
AM posted this in #help-forum
AMOP
This is my route and wrapper utility function: https://pastebin.com/.
Initially, I didn't have
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?
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?