From 4d55546d156920b539e132912bb58e1b271ce39b Mon Sep 17 00:00:00 2001 From: Eric Fennis Date: Thu, 26 Nov 2026 10:25:38 +0100 Subject: [PATCH] fix(site): enable Nitro skew protection and fix assets Cache-Control value (#5304) Claude-Session: https://claude.ai/code/session_01G9u8FfuEnhMTXSiKPJV3kb Co-authored-by: Claude --- docs/nitro.config.ts | 5 +++++ docs/vercel.json | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/nitro.config.ts b/docs/nitro.config.ts index de319f4a6..ed0b16fca 100644 --- a/docs/nitro.config.ts +++ b/docs/nitro.config.ts @@ -1,6 +1,11 @@ export default defineNitroConfig({ compatibilityDate: '2026-02-26', preset: 'vercel', + vercel: { + // Sets the `__vdpl` cookie on page loads, so Vercel serves later asset and page chunk + // requests from the same deployment. Needs Skew Protection enabled in the Vercel project. + skewProtection: true, + }, srcDir: '.vitepress', ignore: ['.vitepress/plugins'], routeRules: { diff --git a/docs/vercel.json b/docs/vercel.json index 93f8b1bed..d67f2382b 100644 --- a/docs/vercel.json +++ b/docs/vercel.json @@ -174,7 +174,7 @@ "headers": [ { "key": "Cache-Control", - "value": "cache-control: public, max-age=31536000, immutable" + "value": "public, max-age=31536000, immutable" } ] },