Two GET requests for the same URI land on an edge gateway a few microseconds apart. One is anonymous. The other carries an Authorization header and fully expects to see its own account. The gateway nominates a leader, fires a single request upstream, and fans the returning 200 OK out to both. Origin load drops. So, quietly, does the second request's right to that response.

That is the whole trap in one paragraph. RFC 9111 permits request collapsing, but only as a fetch optimization — never as a delivery permission. One upstream request may serve many waiters. The right to use what comes back is decided separately, for each of them.

The short version

  • RFC 9111 lets a cache collapse simultaneous misses into one forward request only when the returned response is allowed to satisfy the requests in question.
  • Every waiter still earns its own reuse verdict across target, method, Vary-nominated fields, authorization state and cache-control directives. Collapsing changes how many times you ask. It changes nothing about who may answer.

What RFC 9111 actually permits

The permission exists for a practical reason: when a dozen requests miss at the same instant, a cache can merge them into one forwarded request and spare the origin and the network a dozen identical round trips. Nothing wrong with that. But the permission ships with a condition — the returned response must be allowed to satisfy the requests in question. Where it cannot, those requests must be forwarded anyway, latency be damned.

That qualifier is where implementations get lazy, because it turns a traffic-shaping trick into a correctness obligation.

Reuse is a per-request verdict, not a group verdict

URI resemblance decides almost nothing. Before a stored response may be reused, the presented target URI must match; the method associated with the stored response must permit reuse; request fields nominated by Vary must match; no-cache conditions must be satisfied; and the response must be fresh, permitted to be served stale, or successfully validated.

A collapse reduces the number of upstream fetches. It does not delete a single one of those conditions. Fold five waiters into one leader and you have saved four round trips — and inherited five separate reuse decisions that still have to be made, one waiter at a time.

Vary narrows the crowd; it does not merge it

RFC 9110 §12.5.5 defines Vary as the list of request fields that might have influenced representation selection, which is why those fields expand the cache key used for a later match. RFC 9111 §4.1 then specifies how nominated fields are compared, including normalization and the treatment of fields that are absent on one side and present on the other. A Vary value containing * never matches anything, ever.

Read carefully, Vary is evidence for telling waiters apart — not a licence for treating them as one. It is the instrument that proves the group was never a group.

Authorization draws the hard line

RFC 9111 §3.5 makes the boundary concrete: a shared cache must not reuse a cached response to a request containing Authorization for subsequent requests unless an enabling Cache-Control directive is present and its requirements are met.

Note what this does not say. It does not say collapsed requests are necessarily authenticated. It says fan-out cannot outrun the controls that would govern ordinary reuse. If a response would not have been handed to a stranger through the front door, it should not be handed over through the side door marked optimization.

The metric that lies: origin requests saved

Dashboards love one number — origin requests saved — and it is half a number. The missing half is waiters independently released. A successful leader fetch proves that one upstream transaction returned a response. It proves nothing about whether every follower shared the same selecting fields, authorization constraints, freshness state or reuse permissions.

When those inputs diverge, a separate forward is not inefficiency. It is correctness, and it deserves to be counted as such rather than buried as a latency regression.

The collapse-release receipt

Operators can keep both the capacity and the evidence by binding every collapse group to a release receipt — an editorial control construct proposed here, not an IETF-defined protocol object. It ties one leader request to every waiter, records the returned response and its stored-response identifier, normalizes method and target, compares each nominated field, evaluates the authenticated-response and cache-control rules, and logs either a release or a separate forward for each waiter individually.

The receipt makes the trade-off legible instead of rhetorical. Collapse stays a shared-fetch optimization. Delivery stays an individual decision. A platform can then bank the saved upstream work without quietly booking an ineligible fan-out as a cache hit.

One fetch may be shared. Permission to use what it returns is not an inheritance; it is a decision, made once per waiter, every time.

Sources