{"slug": "serve-markdown-to-ai-agents-with-accept-headers", "title": "Serve Markdown to AI Agents with Accept Headers", "summary": "A new tool from an unnamed developer promotes serving Markdown versions of web pages to AI agents via HTTP content negotiation, using the `Accept: text/markdown` header to reduce token usage, improve retrieval signal-to-noise, and lower latency. The approach involves setting the `Vary: Accept` header, rejecting unsupported types with a 406 status, and honoring `q`-values, with a service that tests URLs from the edge to verify origin responses.", "body_md": "Serve Markdown to AI agents with content negotiation\n\n# Accept: text/markdown\n\nYour site already has the content. Serving a Markdown variant lets agent AI clients skip nav/scripts/layout markup and read the content directly.\n\n-\n01 — Tokens\n\nA fraction of the bytes.\n\nMarkdown drops nav, styles, scripts, and layout wrappers. Agents spend context on your prose, not your DOM.\n\n-\n02 — Retrieval\n\nHigher signal-to-noise.\n\nNo ads, related-content rails, or modal overlays muddying the text a RAG pipeline has to embed.\n\n-\n03 — Latency\n\nFaster first token.\n\nLess to fetch, less to parse, less to stuff into the context window before the model starts thinking.\n\n## How AI-ready is your URL?\n\n- Serves Markdown for\n`Accept: text/markdown`\n\n- Sets\n`Vary: Accept`\n\n- Rejects unsupported types with\n`406`\n\n- Honors\n`q`\n\n-values\n\n## Hit a URL with\n\n`Accept: text/markdown`\n\n.\n\nWe make the request from our edge. See what the origin actually returns.", "url": "https://wpnews.pro/news/serve-markdown-to-ai-agents-with-accept-headers", "canonical_source": "https://acceptmarkdown.com/", "published_at": "2026-08-26 19:45:59+00:00", "updated_at": "2026-08-26 20:51:18.111464+00:00", "lang": "en", "topics": ["ai-agents", "ai-infrastructure", "developer-tools"], "entities": [], "alternates": {"html": "https://wpnews.pro/news/serve-markdown-to-ai-agents-with-accept-headers", "markdown": "https://wpnews.pro/news/serve-markdown-to-ai-agents-with-accept-headers.md", "text": "https://wpnews.pro/news/serve-markdown-to-ai-agents-with-accept-headers.txt", "jsonld": "https://wpnews.pro/news/serve-markdown-to-ai-agents-with-accept-headers.jsonld"}}