The most specific matching Accept range sets each form's weight
In short
Each offered form takes its weight from the most specific Accept member that matches it, in the order type/subtype with parameters, type/subtype, type/*, then */*. A member without q gets weight 1, and q=0 means not acceptable. A markdown verdict also needs a charset on Content-Type plus Vary: Accept.
What it checks
The tester reads one Accept header and the forms your server can send, then works out which form the header prefers. For each form it shows the weight the header gives it and the member that set that weight. It then gives a verdict and the response headers to send with the chosen form. In a request, the server selects one of the proposals through content negotiation and reports its choice in the Content-Type response header (MDN's Accept page). Cloudflare's documentation states that a client fetching markdown from its network adds an Accept header with text/markdown as one of the options (Cloudflare's Markdown for Agents).
Related: Accept header (glossary)
How to use it
Paste the header value into the Accept field, for example text/markdown, text/html;q=0.9. Tick the forms your server offers. HTML and markdown start ticked, and text/plain is available. Then choose the form your server sends when two weights are equal. The default choice is text/html. The result updates in your browser, and nothing you paste leaves the page. Without JavaScript, the worked examples below show the same results as static text.
Rules it applies
- Splits the header at commas into members. Each member is a media range with optional parameters and an optional weight. Following RFC 9110 section 12.5.1, the tool reads
*/*as all media types andtype/*as all subtypes of that type. - Compares type and subtype without regard to case (section 8.3.1).
- Reads any parameter named q as the weight, wherever it sits among the parameters (RFC 9110 on Accept).
- Gives a member without q the weight 1 and treats a weight of 0 as not acceptable (section 12.4.2).
- Checks each q value against the qvalue grammar, which allows 0 with up to three decimal digits or 1 with up to three zeros.
- Takes each form's weight from the most specific member that matches it, in this order: type/subtype with parameters, type/subtype, type/*, */* (precedence rule).
- Marks a form not acceptable when no member names it and no wildcard covers it (section 12.4.3).
- Reports a tie when two forms share the top weight and names your chosen default as the decider. The selection algorithm is server-specific and not defined in the standard (MDN on negotiation).
- When no offered form is acceptable, gives two options: send 406 (Not Acceptable), or disregard the header and respond as if the request were not negotiated (section 12.4.1).
- Adds Vary: Accept, the field that indicates which parts of the request the selection used (RFC 9110 on Vary).
- Adds a charset parameter to the text/markdown Content-Type. The charset is required and has no default (RFC 7763 section 2).
What the result shows
The table lists each offered form, its weight and the member that set it. A form with no matching member reads "no match, not acceptable". The verdict takes one of four forms:
- Serve one form.
- Tie, where your default decides.
- Nothing acceptable, with the choice between 406 and ignoring the header.
- One or more warnings.
Each warning names the malformed member and the rule number it breaks. A member with a broken q value is left out of the calculation instead of being read as a weight.
The headers block gives the Content-Type of the chosen form and Vary: Accept. A cache needs Vary to learn the decision criteria so it can reproduce them (MDN content negotiation). Cloudflare's documentation states that its markdown conversion sets Content-Type to text/markdown; charset=utf-8 and includes Accept in Vary so that caches store separate variants for Markdown and HTML (Cloudflare's response headers). For a markdown verdict, the headers block carries the markdown Content-Type with its charset parameter, plus Vary: Accept.
Content-Type: text/markdown; charset=utf-8 Vary: Accept
Related: Vary: Accept (glossary)
Worked examples
text/*;q=0.3, text/html;q=0.7, */*;q=0.1, with HTML and markdown offered. text/html gets 0.7 fromtext/html;q=0.7. text/markdown gets 0.3 fromtext/*;q=0.3, which outranks*/*. Verdict: serve text/html with Vary: Accept. Rules 1, 4, 6, 10.text/markdown, text/html;q=0.9. Markdown gets 1 because its member has no q, and HTML gets 0.9. Verdict: serve text/markdown with Content-Type: text/markdown; charset=utf-8 and Vary: Accept. Rules 1, 4, 10, 11.*/*, the default Accept value that curl and wget send (MDN's Accept reference). Both forms get 1 from*/*. Verdict: tie, and your default decides. Rules 1, 4, 6, 8.text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8, the value MDN's Accept reference says browser navigation typically has, shown in a request to developer.mozilla.org. HTML gets 1 fromtext/html, and markdown gets 0.8 from*/*. Verdict: serve text/html. Rules 4, 6.application/json, with HTML and markdown offered. Neither form matches. Verdict: nothing acceptable, so send 406 or ignore the header. Rules 7, 9.text/markdown;q=1.5, text/html. The tool warns that 1.5 breaks the qvalue grammar and drops that member. Markdown then has no match, so the verdict is serve text/html at 1. Rules 5, 7.
Limits
The tool evaluates the Accept field only. The HTTP standard also defines Accept-Charset, Accept-Encoding and Accept-Language for proactive negotiation (RFC 9110). The verdict states what the header prefers, not what a client will receive. Even a client that sends */*;q=0 still needs to handle a different response, since the server is allowed to ignore the client's preference.
Related: How to serve markdown on request on each host
Sources
- IETF (RFC Editor): RFC 9110: HTTP Semantics https://www.rfc-editor.org/rfc/rfc9110.html, read 22 November 2026
- IETF (RFC Editor): RFC 7763: The text/markdown Media Type https://www.rfc-editor.org/rfc/rfc7763.html, read 22 November 2026
- MDN: Accept header https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Accept, read 22 November 2026
- MDN: Content negotiation https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Content_negotiation, read 22 November 2026
- Cloudflare: Markdown for Agents https://developers.cloudflare.com/fundamentals/reference/markdown-for-agents/, read 22 November 2026
Last reviewed 22 November 2026