Next.js Discord

Discord Forum

Understanding the new caching behaviors in Next.js 15

Unanswered
Alaska pollock posted this in #help-forum
Open in Discord
Alaska pollockOP
Official Blog site said that :
"In Next.js 15, no-store is used by default if a cache option is not provided. This means fetch requests will not be cached by default."

Does this mean pages will dynamically rendered by default, because I think if we opt out Data-Cache it will lead to opt out Full-Route-Cache which makes pages rendered dynamically, for example if i create blog page component that retreive data using fetch('...') , does this page will dynamically rendered ?
will it be like that ?

please enlight guys, thank you 😊

4 Replies

Alaska pollockOP
i wanna try that new cache behaviour (default 'no-store') by making fetch() request for movies data to my local API, i expect/guess the data won't cache and the movies page component to be rendered dynamically.

Apparently after I tried pnpm build thenpnpm start the movies data is cached and route rendered statically.

*note: fetch('.../movies')executed twice at build-time indicated at vscode right terminal, i dont know why it executed twice

can u enlight me why it goes like that , thanks ? 🤗