Skip to content

Rule · AI search

No Markdown response for Accept: text/markdown

geo/markdown-negotiationinfovoid geoupdated

Why it matters

Coding agents (Claude Code, Cursor) request text/markdown; nextjs.org and Cloudflare's Markdown for Agents answer with Markdown. It's optional and not a ranking factor.

How to fix it

Optionally rewrite Accept: text/markdown requests to your Markdown route in proxy.ts (with Vary: Accept), or enable Cloudflare Markdown for Agents.

Example

ts
// proxy.ts
const accept = request.headers.get('accept') ?? ''
if (accept.includes('text/markdown')) {
  const res = NextResponse.rewrite(new URL('/md' + pathname, request.url))
  res.headers.set('Vary', 'Accept')
  return res
}

References

void geo reports 41 rules in this category. Generative-engine optimisation: whether AI crawlers that don't run JavaScript see the same content, valid and visible JSON-LD, an explicit AI robots policy, llms.txt, Markdown mirrors and answer-first writing.