How to opt out of client cache?
Unanswered
Ratonero Mallorquin posted this in #help-forum
Ratonero MallorquinOP
I know this has been a discussion over the past releases, just curious if there's a good way now to not have the users browser cache all pages aggressively. Or at least have a choice for it, maybe a revalidation time?
2 Replies
@Ratonero Mallorquin I know this has been a discussion over the past releases, just curious if there's a good way now to not have the users browser cache all pages aggressively. Or at least have a choice for it, maybe a revalidation time?
https://nextjs.org/docs/app/building-your-application/caching#opting-out-3
It's not possible to opt out of the Router Cache.
Actually, it is possible to opt out but the config option is still experimental and the versions that support this option are likely to be buggy https://nextjs.org/docs/app/api-reference/next-config-js/staleTimes