diff --git a/src/app/(isr)/template-image/route.tsx b/src/app/(isr)/template-image/route.tsx index a0b371a0..7f98b508 100644 --- a/src/app/(isr)/template-image/route.tsx +++ b/src/app/(isr)/template-image/route.tsx @@ -32,10 +32,10 @@ export async function GET(request: Request) { style: 'normal', }, ], - ...!DEBUG_CACHING && { - headers: { - 'Cache-Control': 's-maxage=3600, stale-while-revalidate', - }, + headers: { + 'Cache-Control': DEBUG_CACHING + ? 's-maxage=1' + : 's-maxage=3600, stale-while-revalidate', }, }, );