From 92fee4fe2682e3df68b8f8278d00d3bf00e3ea09 Mon Sep 17 00:00:00 2001 From: Yash Date: Fri, 27 Feb 2026 12:13:50 +0530 Subject: [PATCH] feat: add cache control headers to GET response --- src/app/(collect)/p/[slug]/route.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app/(collect)/p/[slug]/route.ts b/src/app/(collect)/p/[slug]/route.ts index 79d6faa5c..0688df95e 100644 --- a/src/app/(collect)/p/[slug]/route.ts +++ b/src/app/(collect)/p/[slug]/route.ts @@ -63,6 +63,9 @@ export async function GET(request: Request, { params }: { params: Promise<{ slug headers: { 'Content-Type': 'image/gif', 'Content-Length': image.length.toString(), + 'Cache-Control': 'no-cache, no-store, must-revalidate', + Pragma: 'no-cache', + Expires: '0', }, }); }