From 6fd51e9f070092cb6205819f07b5538286236492 Mon Sep 17 00:00:00 2001 From: trafficlunar Date: Thu, 2 Apr 2026 18:45:54 +0100 Subject: [PATCH] fix: image cache on browsers --- src/app/mii/[id]/image/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/mii/[id]/image/route.ts b/src/app/mii/[id]/image/route.ts index 6d23d95..ced1e92 100644 --- a/src/app/mii/[id]/image/route.ts +++ b/src/app/mii/[id]/image/route.ts @@ -110,6 +110,6 @@ export async function GET(request: NextRequest, { params }: { params: Promise<{ return rateLimit.sendResponse(buffer, 200, { "Content-Type": "image/png", "X-Robots-Tag": "noindex, noimageindex, nofollow", - "Cache-Control": "public, max-age=31536000, immutable", + "Cache-Control": "public, max-age=60, stale-while-revalidate=30", }); }