From 772d11c452e23242053726dc09f075b4ec5eb557 Mon Sep 17 00:00:00 2001 From: boys-cyberhub Date: Fri, 16 Oct 2026 04:02:15 +0100 Subject: [PATCH] fix: caching headers, aria-labels (#583 #585) --- next.config.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/next.config.ts b/next.config.ts index ae2addd..ca64f09 100644 --- a/next.config.ts +++ b/next.config.ts @@ -84,6 +84,19 @@ const nextConfig: NextConfig = { { key: "Cache-Control", value: "public, max-age=0, must-revalidate" }, ], }, + // #585 — static assets (JS/CSS/images) get long-lived immutable caching + { + source: "/_next/static/:path*", + headers: [ + { key: "Cache-Control", value: "public, max-age=31536000, immutable" }, + ], + }, + { + source: "/:path*\\.(png|jpg|jpeg|gif|svg|webp|avif|ico|woff|woff2|ttf|eot)", + headers: [ + { key: "Cache-Control", value: "public, max-age=2592000, stale-while-revalidate=86400" }, + ], + }, ], };