Next.js Discord

Discord Forum

What is the default of Next.js caching?

Answered
Sun bear posted this in #help-forum
Open in Discord
Sun bearOP
I came across unstable_noStore when you call a query to fetch the data. The documentation said that it specify that query not to be cache. But if I don't use noStore(). The default will always be cache?
Answered by Bighead carp
Yeah, but default nextjs caches everything.
View full answer

3 Replies

Answer
Bighead carp
You have to specifically opt out of caching
Bighead carp
@Sun bear Please make sure to right click the answer > Applications > Mark solution