Next.js Discord

Discord Forum

SSR results not updaing

Answered
Almond stone wasp posted this in #help-forum
Open in Discord
Almond stone waspOP
I currently have a page that should be fetching data every time it loads, but when i run the website, the getData() function is either only used once or next.js caches the results because even though the information from the API it fetches has changed, those changes aren't reflected on the webpage.

Is there any way to disable this behavior?
Answered by joulev
add export const revalidate = 0 to the page
View full answer

4 Replies