diff --git a/next.config.ts b/next.config.ts index a8ec28d..0052619 100644 --- a/next.config.ts +++ b/next.config.ts @@ -47,6 +47,14 @@ const nextConfig: NextConfig = { }, async headers() { return [ + { + // * Prevent CDN/browser from serving stale HTML after deploys. + // * Static assets (/_next/static/*) are content-hashed and cached separately by Next.js. + source: '/((?!_next/static|_next/image).*)', + headers: [ + { key: 'Cache-Control', value: 'no-cache, must-revalidate' }, + ], + }, { source: '/(.*)', headers: [