Next.js Discord

Discord Forum

Disable cache in dev mode

Answered
Cuban Crocodile posted this in #help-forum
Open in Discord
Cuban CrocodileOP
Is it possible to disable caching completely in dev mode? It's really annoying if code changes do not reload automatically. Using canary build. I have "use cache" directive at page/layout level.
Answered by B33fb0n3
then, to answer your question:
Is it possible to disable caching completely in dev mode?
no, it's not
View full answer

5 Replies

@Cuban Crocodile Is it possible to disable caching completely in dev mode? It's really annoying if code changes do not reload automatically. Using canary build. I have "use cache" directive at page/layout level.
iirc you can open the dev tools, checkmark the "disable cache" option keep the dev tools open and reload the page. For unstable_cache that does not work, test it for the directive 'use cache'
@Cuban Crocodile It does not work for use cache too.
then, to answer your question:
Is it possible to disable caching completely in dev mode?
no, it's not
Answer
@Cuban Crocodile solved?
I just mark this message as solution. Is this is not the solution for you, feel free to remove it with /remove-post-answer