← All checks
Markdown content negotiation for AI agents
Group B4 pointsrubric r1
We request your homepage with the header Accept: text/markdown, and separately request /index.md (or the page path plus .md).
Why it matters
Markdown carries the same content as HTML with a fraction of the tokens, and agents that ask for it get clean text without navigation markup. Without it the agent has to parse HTML itself. A markdown response to the Accept header scores 4; only a separate .md file scores 2.
How to fix it
- Return
Content-Type: text/markdownwhen the request hasAccept: text/markdown. - Add
Vary: Acceptso caches keep the HTML and Markdown variants apart. - Also publish a
.mdtwin of each page, for example/index.mdfor the homepage. - Generate the Markdown from the same source as the HTML so they never differ.
How to verify
Run curl -s -H "Accept: text/markdown" -D - https://example.com/ | head and look for content-type: text/markdown.