# Make sure people and AI receive the right version of your page

Technical guide · By Optiview · Published October 30, 2026

Updated October 31, 2026.

Canonical article: https://optiview.ai/resources/markdown-negotiation-cache-validation/

Sources checked October 30, 2026.

Ask your web team to check that your website sends the intended page format. This checklist includes technical checks for them.

## Key takeaway

Have your web team check both page formats and the saved copies served to visitors. Keep people’s normal website experience working.

A basic delivery check shows what one request received. Cache testing asks whether the correct version will continue to be served after repeated requests, cached responses and content updates.

One URL can sometimes return HTML or Markdown, depending on the request. The website server, CDN and other services between them must keep the versions separate according to the intended delivery rules.

The HTTP standards define the relevant mechanics. [RFC 9110](https://www.rfc-editor.org/rfc/rfc9110.html) describes representation selection and Vary. [RFC 9111](https://www.rfc-editor.org/rfc/rfc9111.html) describes HTTP caching and cache matching. The matrix below is an Optiview-recommended acceptance procedure, not a claim that every server or cache is configured identically.

## 1. Record the setup before testing

Choose a public URL whose approved source contains several stable, recognizable facts. Identify the origin, CDN, relevant cache rules and expected representations. Preserve the current deployment version and do not conduct disruptive cache experiments on production without authorization.

- Target URL and canonical destination.
- Expected response type for each supported request preference.
- Known cache layers and configuration owner.
- Expected freshness or invalidation policy.
- A reversible, authorized content update for freshness testing.
- Headers and response bodies retained as evidence.

## 2. Test both formats and request orders

| Scenario | Action | Pass condition |
| --- | --- | --- |
| HTML baseline | Request HTML from the selected URL | Expected HTML response and content |
| Markdown baseline | Request Markdown where supported | Expected negotiated response or documented fallback |
| HTML then Markdown | Issue sequential requests in that order | No unintended representation crossover |
| Markdown then HTML | Reverse the request order | No unintended representation crossover |
| Repeated same variant | Repeat each request with unchanged source | Consistent type and required facts |
| Content update | Publish an authorized source revision | New content appears under expected freshness policy |
| Fallback or failure | Inspect a supported error or fallback condition | Documented type, status and safe behavior |

Record what actually happens, even when the result differs from your expectation. Returning HTML may be an allowed fallback, but it must not be recorded as successful Markdown delivery.

## 3. Inspect the headers and cache rules

At minimum, record Content-Type, Vary, Cache-Control, Age and any validators or CDN diagnostic headers that are present. Some fields may be absent by design. Their absence is an observation to evaluate against the configuration, not automatically a defect.

Cloudflare's [Markdown for Agents documentation](https://developers.cloudflare.com/fundamentals/reference/markdown-for-agents/) states that converted responses include Accept in Vary and that certain original-body headers, including ETag and Last-Modified, are removed from converted responses. Those are documented feature behaviors; do not generalize them to every Markdown delivery implementation.

- Confirm that relevant request dimensions are represented in the cache-selection policy.
- Check whether a shared intermediary could reuse the wrong representation.
- Investigate unexpectedly stale bodies or mismatched cache metadata.
- Do not assume that the presence of Vary proves every intermediary honors the intended key.
- Preserve both the headers and body needed to reproduce a suspected failure.

## 4. Check that both formats stay current

An HTML response and a Markdown response may each be correctly formatted yet contain different revisions of the underlying content. A successful representation check therefore does not prove freshness.

1. Record a known source revision and its approved factual content.
2. Capture both supported representations before the update.
3. Make an authorized, reversible source change with an identifiable version marker.
4. Observe each representation according to the documented cache policy.
5. Record when the updated source becomes visible and whether any variant remains unexpectedly stale.
6. Restore the test fixture if required and retain the outcome, including inconclusive observations.

## 5. Define the release decision

Pass only when the required tests match the intended delivery policy. Hold the release if formats are mixed up, an outdated response cannot be explained or important information disappears.

Keep cache findings separate from indexing and answer-generation claims. The existing [Optiview source-delivery audit](https://optiview.ai/resources/audit-html-markdown-delivery/) explains how to capture individual responses; this matrix extends that procedure into repeated cache, order and freshness validation.
