From 9627d912b443c1356eefdd12c879a94af54cc809 Mon Sep 17 00:00:00 2001 From: Sam Becker Date: Wed, 6 Sep 2023 18:53:18 -0500 Subject: [PATCH] Reconfigure template-image debug caching --- src/app/(isr)/template-image/route.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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', }, }, );