---
title: "Accept header resolver for markdown or HTML | Agent Ready Checklist"
description: "How does the tool choose a type from an Accept header? Weights set the winner, q=0 rules a type out, and equal top weights are called a tie."
canonical: https://agentreadychecklist.com/accept-header-resolver
site: "Agent Ready Checklist"
last_updated: 2026-11-22
date: 2026-11-22
section: "Tools"
---

# Accept header resolver for markdown or HTML | Agent Ready Checklist

> How does the tool choose a type from an Accept header? Weights set the winner, q=0 rules a type out, and equal top weights are called a tie.

Source: https://agentreadychecklist.com/accept-header-resolver
Site: Agent Ready Checklist
Last reviewed: 2026-11-22
Agent endpoints: https://agentreadychecklist.com/llms.txt (index), https://agentreadychecklist.com/openapi.json (API), https://agentreadychecklist.com/mcp (MCP server), https://agentreadychecklist.com/ask (search)
Access: https://agentreadychecklist.com/auth.md (no key). Pricing: https://agentreadychecklist.com/pricing.md (free).

# The tool picks the type with the highest Accept weight

Accept header weights decide which representation this tool says the header prefers. A range without q counts as weight 1, q=0 marks a type not acceptable, and a type the header never names is unacceptable unless a wildcard covers it. Equal top weights are reported as a tie.

## What it checks

Paste the Accept header a client sent and tick the representations your URL can return: text/html, text/markdown, text/plain. The tool parses each media range with its weight and gives every ticked type an effective weight along with the range that set it. Its verdict is one type, a tie, or nothing acceptable. It prints the Content-Type and Vary headers to send with the pick. A substring line shows what a plain includes('text/markdown') check would answer, so you can see where that shortcut and the weights part ways.

Related: [Verify Kit check: markdown-negotiation](https://agentreadychecklist.com/kit/markdown-negotiation/)

## How to use it

Paste the header value without the "Accept:" name. Leave the field empty to test a request that carries no Accept header at all. Tick each representation the URL has; text/html starts ticked. Five presets fill the field for you: no Accept, `*/*`, `text/markdown`, `text/html;q=0.9, text/markdown;q=0.8`, and `text/markdown;q=0, text/html`. Everything runs in the page, with no network call.

## The resolver

Accept header

Representations your URL can return

## Rules it applies

1.  Splits the header at commas into media ranges, each a media type with optional parameters and a quality factor ([MDN on Accept](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Content_negotiation)).
2.  Compares type and subtype without regard to case ([RFC 9110](https://www.rfc-editor.org/rfc/rfc9110.html)).
3.  Reads a parameter named q, in any case, as the weight ([RFC 9110](https://www.rfc-editor.org/rfc/rfc9110.html)).
4.  Gives a range with no q the weight 1 ([RFC 9110](https://www.rfc-editor.org/rfc/rfc9110.html)).
5.  Marks a type with weight 0 as not acceptable ([RFC 9110](https://www.rfc-editor.org/rfc/rfc9110.html)).
6.  Flags a q value outside the weight range of 0 through 1 that the standard sets, or one with more than three digits after the decimal point, which a sender must not generate ([RFC 9110](https://www.rfc-editor.org/rfc/rfc9110.html)).
7.  Lets a `*` wildcard cover types the header does not name; with no wildcard present, a type the header does not mention is unacceptable ([RFC 9110](https://www.rfc-editor.org/rfc/rfc9110.html)).
8.  Reports a tie instead of choosing when the top weights are equal. MDN says an internal algorithm on the server chooses the best content to serve, and that the algorithm is server-specific and not defined in the standard ([MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Content_negotiation)).
9.  Offers two answers when no available type is acceptable: send 406 Not Acceptable, or disregard the header and respond as if the request were not negotiated ([RFC 9110](https://www.rfc-editor.org/rfc/rfc9110.html)).
10.  Returns HTML when the field is empty, as for a request with no Accept header. Cloudflare's docs say a client wanting the Markdown version of a page from a zone with Markdown for Agents enabled needs to add the Accept negotiation header with text/markdown as one of the options ([Cloudflare's Markdown for Agents](https://developers.cloudflare.com/fundamentals/reference/markdown-for-agents/)).
11.  Prints `Content-Type: text/markdown; charset=utf-8` for a markdown pick, the type a request with Accept: text/markdown should receive ([Vercel's guide](https://vercel.com/kb/guide/make-your-site-readable-by-ai-agents)); the charset parameter is required for text/markdown and has no default ([RFC 7763](https://www.rfc-editor.org/rfc/rfc7763.html)).
12.  Adds `Vary: Accept` to a markdown pick so caches store separate variants for Markdown and HTML ([Cloudflare's response headers](https://developers.cloudflare.com/fundamentals/reference/markdown-for-agents/)).
13.  Adds `Vary: Accept` to the HTML response as well whenever text/markdown is ticked, since the Accept header then decides between the two. MDN says the server uses the Vary header to indicate which headers it actually used for content negotiation, so that caches can work optimally ([MDN on content negotiation](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Content_negotiation)).
14.  Prints text/html as the Content-Type when HTML is the pick, following the instruction to return HTML with its correct content type when Markdown is unavailable ([Vercel's guide](https://vercel.com/kb/guide/make-your-site-readable-by-ai-agents)).
15.  Reports whether the raw header text contains text/markdown as a plain substring and sets that result beside the weighted verdict. Cloudflare's page states its requirement as an Accept header with text/markdown as one of the options ([Cloudflare's page](https://developers.cloudflare.com/fundamentals/reference/markdown-for-agents/)).

## What the result shows

The first block lists each media range as parsed, with its weight and a flag on any invalid q. The second block gives each ticked type its effective weight and names the range that set it. When several ranges match one type, the tool takes the weight of the most specific: type/subtype first, then type/\*, then \*/\*.

Below that, the verdict reads text/markdown, text/html, text/plain, tie, or nothing acceptable. A nothing-acceptable verdict lists both the 406 response and the default HTML. The headers line gives the Content-Type and Vary to send.

Related: [Vary: Accept defined](https://agentreadychecklist.com/glossary/vary-accept/)

The substring line says "present" or "absent" for text/markdown in the raw text. It carries a "disagrees" flag when it says present and the verdict is not markdown, or says absent and the verdict is markdown.

## Worked examples

-   Empty field, text/html and text/markdown ticked: HTML with `Content-Type: text/html` and `Vary: Accept`; substring absent, no flag. Rules 11, 14, 15.
-   `*/*`, both ticked: both types weigh 1, set by `*/*`; verdict tie; substring absent, no flag. Rules 4, 7, 9.
-   `text/markdown`, both ticked: text/markdown weighs 1, text/html is unacceptable because no range names it and no wildcard is present; verdict text/markdown with `Content-Type: text/markdown; charset=utf-8` and `Vary: Accept`; substring present, no flag. Rules 4, 7, 8, 12, 13.
-   `text/html;q=0.9, text/markdown;q=0.8`, both ticked: text/html 0.9, text/markdown 0.8; verdict text/html with `Vary: Accept`; substring present, flagged as disagreeing. Rules 3, 8, 14, 16.
-   `text/markdown;q=0, text/html`, both ticked: text/markdown weighs 0 (not acceptable, set by `text/markdown;q=0`), text/html weighs 1 (set by `text/html`); verdict text/html with `Vary: Accept`; substring present, flagged as disagreeing. Rules 4, 5, 8, 14, 16.
-   `text/markdown`, only text/html ticked: text/html is unacceptable; verdict nothing acceptable, with 406 or HTML sent as if the request were not negotiated. Rules 7, 10.

## Limits

The tool reads only the Accept header. It fetches nothing, so it cannot tell you what a live server returns.

The Vary line names Accept alone. Cloudflare's docs say Markdown for Agents preserves any Vary dimensions your origin already declared, so keep those in your own response ([Cloudflare's docs](https://developers.cloudflare.com/fundamentals/reference/markdown-for-agents/)).

The substring line describes the raw text and nothing more. It does not show how any platform resolves weights.

Related: [CF-MARKDOWN-NEGOTIATION](https://agentreadychecklist.com/checklist/cf-markdown-negotiation/)

## Sources

-   [RFC 9110: HTTP Semantics](https://www.rfc-editor.org/rfc/rfc9110.html)IETF / RFC Editor, read 2026-11-22
-   [RFC 7763: The text/markdown Media Type](https://www.rfc-editor.org/rfc/rfc7763.html)IETF / RFC Editor, read 2026-11-22
-   [Markdown for Agents (Cloudflare docs)](https://developers.cloudflare.com/fundamentals/reference/markdown-for-agents/)Cloudflare, read 2026-11-22
-   [Make your site readable by AI agents (Vercel)](https://vercel.com/kb/guide/make-your-site-readable-by-ai-agents)Vercel, read 2026-11-22
-   [Content negotiation (MDN)](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Content_negotiation)MDN, read 2026-11-22

Last reviewed 2026-11-22. AgentReady v2.0.1, read 2026-11-24.
