Delivery and performance

Can a cache tell HTML and Markdown apart?

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

Source review

Server response, First text arrives, Time one request. Browser, Button responds, Test the interaction.
Where did the wait happen?

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

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