# Can a cache tell HTML and Markdown apart?

Anonymous Analysts guide. Reviewed 2026-11-23.

![Server response, First text arrives, Time one request. Browser, Button responds, Test the interaction.](/assets/diagrams/performance-example.webp)

## What the result means

When one URL serves both HTML and Markdown, a shared cache needs to know the difference. Otherwise a reader can receive the wrong format.

## What to do

When content depends on Accept, configure the cache key accordingly and verify HTML and Markdown responses in both request orders.

## Practical example

A Markdown request should not cause a later browser request to receive the Markdown edition from a shared cache.

## Implementation example

```http
Vary: Accept
```

## Adapting the example

Use this when the selected representation actually varies by Accept. Include any other necessary variation and test the real CDN configuration in both request orders.

## How to verify the result

Request both editions repeatedly through the actual delivery layer and confirm their media types, contents and cache separation.

## What this check cannot prove

Anonymous Analysts’ source reader does not provide real-user percentiles, execute page scripts or measure browser interaction latency. Its thresholds are review heuristics, not universal agent requirements.

## Where this advice comes from

These are context-dependent implementation recommendations. Anonymous Analysts’ review threshold is not a universal agent requirement.

## Sources and standards

- [www.rfc-editor.org](https://www.rfc-editor.org/rfc/rfc9110.html)
- [specification.website](https://specification.website/checklist/)

## Related checks

- [How long did this read take?](/guides/checks/response-time)
- [How large was the HTML response?](/guides/checks/html-size)
- [Can we request this page as Markdown?](/guides/checks/markdown-negotiation)

[All check guides](/guides/) · [Run the free checker](/tools/agent-readiness#checker)
