From b6253c87b43cb2fa4b6e9a25298b326869c86ec7 Mon Sep 17 00:00:00 2001 From: sriramveeraghanta Date: Tue, 21 Apr 2026 20:47:06 +0530 Subject: [PATCH] feat(vercel): add Vary: accept so CDN serves markdown to agents The existing Accept: text/markdown rewrite was being masked by Vercel's CDN caching the first variant (HTML) and serving it for all subsequent requests regardless of Accept header. Advertising Vary: accept lets the CDN cache HTML and markdown as separate entries so agents actually get markdown back. --- vercel.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vercel.json b/vercel.json index bad473fb..392f218c 100644 --- a/vercel.json +++ b/vercel.json @@ -7,6 +7,10 @@ { "key": "Link", "value": "; rel=\"describedby\"; type=\"text/plain\", ; rel=\"service-doc\"; type=\"text/html\", ; rel=\"sitemap\"; type=\"application/xml\"" + }, + { + "key": "Vary", + "value": "accept" } ] }