Next.js Discord

Discord Forum

data wont update because of chache

Answered
Magyar agár posted this in #help-forum
Open in Discord
Avatar
Magyar agárOP
when i pres ctrl+f5 it updates , why? what can i do?
Answered by Ray
fetching data with fetch is cached by default.

you can disable it like this
fetch("", { cache: "no-store" })
View full answer

4 Replies

Avatar
show us the code please
Avatar
Magyar agárOP
Image
Avatar
fetching data with fetch is cached by default.

you can disable it like this
fetch("", { cache: "no-store" })
Answer
Avatar
Magyar agárOP
thanks man , it resolved my problem