diff --git a/next.config.ts b/next.config.ts index 1c1ba19..e74a59d 100644 --- a/next.config.ts +++ b/next.config.ts @@ -80,6 +80,17 @@ const nextConfig: NextConfig = { }, ], }, + { + // Images and icons are not content-hashed, so revalidate instead of + // pinning them for a year. + source: "/assets/:path*", + headers: [ + { + key: "Cache-Control", + value: "public, max-age=86400, stale-while-revalidate=604800", + }, + ], + }, ]; }, }; diff --git a/src/app/layout.tsx b/src/app/layout.tsx index b0fe670..6c3f6b3 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -171,14 +171,14 @@ export default function RootLayout({