From ae2b059a80fb5717ffcec4ef4d302091e0d2b4cb Mon Sep 17 00:00:00 2001 From: Baptiste Leproux Date: Fri, 18 Sep 2026 12:01:37 +0200 Subject: [PATCH] fix(config): drop cache-control on `_payload.json` routes --- modules/config/index.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/modules/config/index.ts b/modules/config/index.ts index 8020d2f..68064bd 100644 --- a/modules/config/index.ts +++ b/modules/config/index.ts @@ -255,12 +255,6 @@ export default defineNuxtModule({ '/api/content/blob/*/manifest.json': { isr: true }, // Immutable since SHA-pinned '/api/content/blob/*/snapshot/*': { isr: true }, // Immutable since SHA-pinned '/api/code-explorer/**': { isr }, - '/_payload.json': { - headers: { 'cache-control': `public, max-age=${isr}, s-maxage=${isr}, stale-while-revalidate=60` }, - }, - '/**/_payload.json': { - headers: { 'cache-control': `public, max-age=${isr}, s-maxage=${isr}, stale-while-revalidate=60` }, - }, } if (existsSync(contentPath)) {