Markdown Copies Of Pages For Agents Without Hurting SEO Developer Jake Marsh documented a method for serving Markdown copies of blog pages to AI agents without harming search rankings by adding three HTTP response headers to each copy: a Link rel="canonical" header pointing to the HTML page, X-Robots-Tag: noindex, follow, and Vary: Accept. Marsh implemented the headers in nginx, where add_header directives are inherited only if no add_header is defined at the current level, and in Next.js, where a proxy rewrites .md requests to a route handler. Marsh warned against disallowing *.md in robots.txt, since Google ignores X-Robots-Tag and canonical rules on URLs it cannot fetch. Markdown Copies Of Pages For Agents Without Hurting SEO Jake Marsh https://deallocatedobjects.com/about In this post When I made this blog readable by agents https://deallocatedobjects.com/posts/making-my-blog-readable-by-ai-agents , every post got a Markdown copy at its URL plus .md , and the normal URL answers with Markdown when a client sends Accept: text/markdown . Each HTML page also links its copy with