Cache issue on next.js application which is deployed as SSG (static site generation)

Hi,

I had deployed next.js application as SSG on netlify, so I am facing this issue randomly. After successful login , it is not moving to dashboard, instead it is staying on same login page. but if I do refresh and I tried to login, it is working. pls help me to fix this issue. I tried _headers file while making /* cache-control: no-store, must-revalidate

I don’t see any site and reproduction steps mentioned. Please share details.

It is EverGreenIQ , while after successful login, it is on same login page instead of moving to dashboard page. and this issue is happening randomly

Do you have any test credentials?