Next.js deployed as node app is ignoring revalidation
Unanswered
Burmese posted this in #help-forum
BurmeseOP
I am using next 14 deployed to fly.io as normal node app. Everything is prerendered. When my app does not have any traffic it is scale down to 0.
At some step data is chaning and i have
Everything was working when I did not scale it to 0. Can anyone explain me why is this happening and how can i fix it ? Thanks
At some step data is chaning and i have
revalidatePath
called. At first it seems that is is working. First user is getting stale date but next is request is served with new one. From this point forward any user should get new date. But when my machine is scale down to 0 and back to 1 instance everything is happening again. First user is getting stale date (304 response) and the rest are getting new date. Everything was working when I did not scale it to 0. Can anyone explain me why is this happening and how can i fix it ? Thanks