Hey,
I have a SSR page which fetches some data from my database and displays it on my web page.
I have attempted to use revalidate = 240 to make the cache refresh every 240 seconds. However, after checking the response headers I am getting cache-control: private, no-cache, no-store, max-age=0, must-revalidate back from vercel. What have I done wrong? I am on version "next": "^15.0.1",
export const revalidate = 240;
export default async function Home() {
const totalApplications = await db.applications.count();
return (
<HydrateClient>
<div className="h-full">
<h1>{totalApplications}</h1>
</div>
</HydrateClient>
);
}