Understanding the new caching behaviors in Next.js 15
Unanswered
Alaska pollock posted this in #help-forum
Alaska pollockOP
Official Blog site said that :
"In Next.js 15,
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
will it be like that ?
please enlight guys, thank you 😊
"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 pollock 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 😊
nah i think it means that route handlers that use GET are not cached by default
anymore
Alaska pollockOP
i wanna try that new cache behaviour (default 'no-store') by making
Apparently after I tried
*note:
can u enlight me why it goes like that , thanks ? 🤗
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 ? 🤗