What is the default of Next.js caching?
Answered
Sun bear posted this in #help-forum
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?3 Replies
@Sun bear 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?
Bighead carp
Yeah, but default nextjs caches everything.
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