OPEN_SOURCE ↗
YT · YOUTUBE// 28d agoPRODUCT UPDATE
Cloudflare converts HTML to Markdown for AI agents
Cloudflare's new beta feature automatically converts web pages to Markdown at the edge when AI agents send an `Accept: text/markdown` HTTP header, cutting token usage by up to 80% at no extra cost. Available via a single dashboard toggle for Pro, Business, and Enterprise plans — no origin code changes required.
// ANALYSIS
Cloudflare just quietly made itself the default middleware for the agentic web, and most site owners won't even notice they opted in.
- –The 80% token reduction is real and significant: Cloudflare's own blog post goes from 16,180 HTML tokens to 3,150 Markdown tokens — a cost multiplier that adds up fast at scale
- –Claude Code and OpenCode already send `Accept: text/markdown`, meaning the standard is forming around this header before most developers have heard of it
- –The `x-markdown-tokens` response header enabling agents to pre-check context window fit is a subtle but powerful addition for orchestration layers
- –A legitimate SEO concern has emerged: because Cloudflare forwards the header to origin servers, sites can detect AI agent requests and serve different content — a potential "shadow web" vector for prompt injection or SEO manipulation
- –Combined with Cloudflare's Content Signals framework, this positions Cloudflare as the trust and policy layer between the open web and AI agents — a strategic expansion well beyond CDN or DDoS protection
// TAGS
cloudflareagentinferenceapimcpdevtool
DISCOVERED
28d ago
2026-03-15
PUBLISHED
28d ago
2026-03-15
RELEVANCE
8/ 10
AUTHOR
DIY Smart Code