I have a website with the frontend hosted on Vercel. When I navigate to certain pages, it takes several seconds to load for the first time. However, if I visit the same page from another device within 2 minutes, the page loads almost instantly. If I revisit the page after a few minutes, it takes several seconds to load again.
It seems that Vercel caches the page to serve it quickly but loses the cache after a short period. I am using Next.js with server-side rendering (SSR) for my e-commerce platform.
How can I maintain the fast page load times consistently? Are there any strategies or configurations in Next.js or Vercel that can help with this issue?
1