Reconfigure template-image debug caching

This commit is contained in:
Sam Becker 2023-09-06 18:53:18 -05:00
parent 1fc78113c3
commit 9627d912b4

View File

@ -32,10 +32,10 @@ export async function GET(request: Request) {
style: 'normal', style: 'normal',
}, },
], ],
...!DEBUG_CACHING && {
headers: { headers: {
'Cache-Control': 's-maxage=3600, stale-while-revalidate', 'Cache-Control': DEBUG_CACHING
}, ? 's-maxage=1'
: 's-maxage=3600, stale-while-revalidate',
}, },
}, },
); );