Skip to content

A conditional schema request is exact string equality and nothing more

A partial wildcard implementation would report "unchanged" to a client that holds no copy at all, which is worse than answering unconditionally.

The rule

Normative: this is the rule
  1. If-None-Match on a workflow schema read MUST be compared for exact string equality against the tag of the variant being requested.
  2. A match MUST answer 304 carrying the entity tag.
  3. The body of that 304 MUST be {}.
  4. A match is answered before the schema itself is assembled.
  5. A mismatch MUST answer the full 200.
  6. The wildcard *, a comma-separated list of tags and weak comparison are not supported: a request sending any of them MUST receive the full 200.
  7. Each variant MUST answer its own conditional request, so carrying the variant in the tag costs no variant a 304.

What it means

Only one comparison counts: a match needs the tag sent to equal, character for character, the tag of the variant actually being requested. The wildcard, a comma-separated list of tags and weak comparison are not read at all — a caller sending any of them falls through to the full response rather than being told, wrongly, that nothing has changed. A partial reading of the wildcard would be worse than none: it would tell a caller holding no copy at all that its (nonexistent) copy is still current.

Because the tag carries the variant (META-6), a tag minted for one variant does not short-circuit a request for the other — each variant answers only its own conditional request.

Example

A held copy's tag, sent back unchanged304 — unchanged
GET /api/flowdrop/workflows/{workflow_id}/schema
If-None-Match: "1.2.3"

{}
The plain copy's tag, sent while asking for the annotated body200 — unconditional
GET /api/flowdrop/workflows/{workflow_id}/schema?annotated=1
If-None-Match: "1.2.3"
A wildcard match, which this endpoint does not read200 — unconditional
GET /api/flowdrop/workflows/{workflow_id}/schema
If-None-Match: *

Why

Recorded under OPEN-25.

Rule identifiers are permanent and are never renumbered. Each implementation publishes its own standing against these rules; this specification does not.spec 1.0 · META-7 · changed in spec 1.0