Next.js Discord

Discord Forum

Opting out of Data and Full Route Cache

Unanswered
Eulophid wasp posted this in #help-forum
Open in Discord
Eulophid waspOP
Using a Dynamic Function: This will opt the route out from the Full Route Cache and dynamically render it at request time. The Data Cache can still be used.

fetch requests are not cached if:
The fetch request comes after the usage of headers or cookies.

these are from the documentation. How is it possible that using headers or cookies opt outs of Data Cache but then it says the data cache can still be used even after a dynamic function ?

0 Replies