SSR results not updaing
Answered
Almond stone wasp posted this in #help-forum
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?
Is there any way to disable this behavior?
4 Replies
@Almond stone wasp 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?
add export const revalidate = 0 to the page
Answer
@joulev add export const revalidate = 0 to the page
Almond stone waspOP
alright thanks, also is the revalidate const in seconds or ms?
in seconds
Almond stone waspOP
alright, ty