My scenario is like I'm trying to list out online users in a page /online. Where the /online is server component(non 'use client'). External API endpoint is used to get online users using Axios. I was only getting the users active at the time of initial page load and the list was not updating even if I hit refresh page several times. Then I added export const revalidate = 60; in the server component, and all works fine.
I would like to know what had actually happened. An answer or any links would be helpful.
I was not completely aware of the reason. All I knew was the GET in the API route caches data by default. In my case also any caching happening?