Spotlight

Case Study Microsoft

How Microsoft scaled global content delivery

Find out how Microsoft used Gcore to strengthen delivery across regions.

case study ProSieben GNTM app TOPSHOT

How ProSieben scaled GNTM's app TOPSHOT

Explore how ProSieben brought real-time AI portraits to GNTM's audience.

case study Higgsfield

How Higgsfield scaled AI video generation

See how Gcore helped Higgsfield scale with GPUs and Managed Kubernetes.

case study Fawkes Games

How Fawkes Games stopped DDoS attacks

See how Gcore protected gaming servers from massive DDoS threats without disrupting gameplay.

We're hiring

Help build the next chapter of the web

We're not just filling seats. We're building a team that will write the next chapter of the internet.

  1. Home
  2. Developers
  3. The web has a new reader: serving Markdown for agents

The web has a new reader: serving Markdown for agents

  • By Gcore
  • August 10, 2026
  • 5 min read
Laptop, servers, MD and HTML files in an isometric network, showing data conversion.

FastEdge Markdown Transformation lets websites serve Markdown to AI agents directly from the CDN edge, while browsers continue to receive the same HTML page.

Websites now have more than one kind of reader. Browsers need HTML (layout, styling, scripts, and navigation). AI agents and automated systems often arrive with a simpler goal: retrieve the meaningful content and understand its structure. Today, most of those systems fetch the same HTML a browser receives and run their own extraction step: stripping tags, rebuilding headings, and recovering document structure. That works, but every system repeats the same cleanup independently, burning tokens and compute in the process.

Markdown gives these systems a cleaner representation. It preserves useful document structure — headings, links, lists, code blocks, tables — while removing most layout overhead. On a live Gcore blog post, the standard HTML response came to roughly 110,000 tokens, while the Markdown representation of the same page was about 4,400 tokens, a 96% reduction. The exact numbers depend on the page, but at the scale of millions of automated requests per month, that kind of difference compounds quickly in both processing cost and latency.

This particular page carries a large site-wide navigation menu in its HTML, which is stripped entirely in the Markdown version. Sites with lighter markup will see a smaller, though still meaningful, reduction.

Gcore's FastEdge Markdown Transformation uses a simple pattern: same URL, different representation when the client explicitly asks for it. A browser request receives HTML. A client that sends Accept: text/markdown receives Markdown. No separate endpoint, no CMS changes, no duplicate pages.

Variations of this pattern have started appearing across the infrastructure ecosystem as AI agents and automated systems become a larger share of web consumers. FastEdge Markdown Transformation is available directly through Gcore's CDN and edge compute platform, including on the free CDN tier.

How the request works

The flow uses standard HTTP content negotiation. A client can request a Markdown representation of a page like this:

curl -L -H "Accept: text/markdown" https://gcore.com/blog/gpu-vm-launch

The response returns clean Markdown, with the article content structured as headings, lists, and body text:

# Introducing GPU VMs on NVIDIA AI infrastructure in Sines (EU)
* March 30, 2026
* 3 min read

Some AI jobs require the full power and predictability of
dedicated bare metal clusters. Others need something more
agile: compute that can be sized up or down quickly, used
for a burst of experimentation, powered down when idle...

## A more adaptable way to use NVIDIA Hopper GPUs

GPU VMs give teams a way to tap into Hopper performance
without committing to long-running hardware...

(truncated for brevity)

Without the Accept header, the same request returns the original HTML page unchanged.

FastEdge checks the incoming request. If Accept: text/markdown is present, the FastEdge application fetches the origin response, verifies it is HTML, applies the HTML-to-Markdown transformation, and returns Markdown. Without that header, the response passes through unchanged as HTML.

The client is not identified by the user agent — the response is determined entirely by what the client explicitly asks for. That distinction matters. Serving different content based on user-agent detection is the pattern search engines flag as cloaking. Responding to an explicit Accept header is standard HTTP content negotiation, the same mechanism the web already uses for JSON, XML, compressed assets, and image formats.

The server is not guessing who is asking. It is responding to an explicit request for a different representation of the same resource.

Why at the CDN edge

You could generate Markdown at build time, add Markdown rendering to your backend, or expose a separate /markdown route. FastEdge Markdown Transformation takes a different approach: transform the existing HTML response directly in the CDN (Content Delivery Network) delivery path. Because the transformation runs on Gcore's global CDN infrastructure, the logic executes close to where requests are already being handled, across more than 210 PoPs (points of presence) worldwide with an average global latency of around 30 ms.

That has four practical advantages.

  • No origin changes. The application transforms the existing HTML response without requiring changes to your origin.
  • No CMS changes. The CMS continues serving HTML as it always has.
  • Transformation at the edge. FastEdge runs WebAssembly applications within the CDN pipeline, so the logic executes close to where requests are already being handled.
  • A reusable pattern. Inspect a header, fetch content, transform the response, and return a better-suited representation. The same model applies to other edge transformations beyond Markdown.

The origin does not need to change. The CMS does not need to know about Markdown. The transformation happens close to the request — FastEdge runs WebAssembly applications within the CDN pipeline, so the logic executes where traffic is already being handled. And the pattern is reusable: inspect a header, fetch content, transform the response, return a better-suited representation. The same model applies to other edge transformations beyond Markdown.

Gcore uses this same template in production for gcore.com and its documentation, proof that the pattern holds up on a content-heavy site with the same requirements you're evaluating.

Caching

Once a Markdown response is generated, the CDN can cache and reuse it for subsequent requests. The template handles cache separation automatically. It adds a Convert: markdown request header and Vary: Convert to the response, so the CDN maintains separate cache entries for HTML and Markdown variants of the same URL.

Setting it up

The implementation is available as a FastEdge HTML-to-Markdown template in the Gcore portal.

  1. Create a FastEdge app from the HTML to Markdown template in the Gcore portal.

    Dark-themed web application interface for creating new applications with binary upload and templates.
  2. Attach the FastEdge app to the relevant CDN resource, with on request headers, on response headers, and on response body enabled.
  3. Configure CDN rules to define which paths or requests should run the FastEdge app transformation.
  4. Test with curl:

    curl -H "Accept: text/markdown" https://your-domain.com/page

    Compare against the same URL without the header (you should receive standard HTML).

    Dark mode settings for a FastEdge app showing request headers and processing options.

Developers can also use the published template source as a starting point for building custom FastEdge apps.

The source is published on GitHub at github.com/G-Core/FastEdge-templates/tree/main/html2md. For a faster setup, the template repository includes a Deploy now button that provisions the FastEdge app directly, for logged-in Gcore users.

What this is useful for

The pattern works best for content-heavy pages where structure matters: documentation, technical blogs, product docs, changelogs, support articles, knowledge bases, and developer reference pages. These are pages where an automated system needs headings, links, and code examples more than it needs visual layout.

Markdown is not a replacement for HTML. It is a second representation of the same content, for clients that ask for it.

Things to check before deploying

The feature works best when meaningful content is present in the raw HTML response. Sites that rely heavily on client-side rendering may find the origin response doesn't contain enough content to produce useful Markdown (worth testing on a few representative pages first).

Conversion quality also depends on source HTML structure. Clean semantic markup produces better results than pages with heavily nested layout or large amounts of dynamically injected content.

The FastEdge app buffers the full HTML response before conversion, so very large or unusually complex pages may run into memory or execution-time constraints. For most documentation and blog content, this is not a practical issue.

A small pattern with useful consequences

FastEdge Markdown Transformation is not about replacing the web page. Browsers get HTML, as always. Clients that explicitly ask for Markdown get Markdown. The origin and CMS stay unchanged. The CDN edge handles the transformation.

For developers, that is the useful part: a practical HTTP and edge-compute pattern you can add without redesigning the infrastructure behind it.

If you'd like to see the feature working end-to-end, including deployment, request flow, and a live comparison of HTML and Markdown responses, this video walks through the complete implementation.

Related articles

Data network with server, devices, file folders, and security shield over a global map.
CDN Caching: What It Is and How It Works

Every second of load time costs you. During a traffic spike, an uncached origin server can buckle under the pressure, and CDN caching can offload 70% to 90% of that traffic before it ever reaches your Gcore infrastructure. For a user in New

A central server connecting to various smart devices, laptop, phone, camera, and cloud services.
What Is an Edge Server?

Picture an autonomous vehicle doing 70 mph on the highway, waiting on a response from a data center hundreds of miles away. Or a surgeon depending on real-time imaging that freezes mid-procedure because data has to make a round trip across

Man interacts with a data processing system showing inputs, a central server, and outputs.
What is Cache Hit Ratio and How Can You optimize It?

Every cache miss is a trip your server didn't need to make. And those trips add up fast. Sites with poorly optimized caching can see cache hit ratios as low as 70%, meaning three in 10 requests are hitting your origin server directly, dragg

Secure data server connected to cloud and other servers, illustrating data management and security.
What Is a High Availability Server?

Every minute your servers are down, your business is bleeding. For e-commerce sites, healthcare platforms, and revenue-critical applications, an outage isn't just an inconvenience. It's a direct hit to your bottom line, your reputation, and

Visual comparison of cloud-based infrastructure connected to devices versus traditional server racks.
Cloud vs Dedicated Server: Which Is Right for You?

Your server choice could be quietly costing you, or quietly holding you back. Pick the wrong infrastructure for your workload and you're either overpaying for idle hardware every month or watching your site buckle under traffic spikes you c

Man and woman secure a network, analyzing threats and protecting global data infrastructure.
How to Troubleshoot DNS Issues: Complete Guide

Your website stops loading. Email bounces back. Users can't access your application. The culprit? A DNS failure that's invisible to most monitoring tools but devastating to your operations. When DNS breaks, every service that depends on it

Subscribe to our newsletter

Get the latest industry trends, exclusive insights, and Gcore updates delivered straight to your inbox.