Summary

  • A 304 Not Modified answers one narrow conditional question about one selected representation and lets a cache freshen stored metadata. It is not a certificate that anything upstream is current.
  • Bind validator evidence to the data lineage behind a representation before a green revalidation badge is allowed to authorize a business decision.

Somewhere in your stack a configuration endpoint is serving JSON bytes that have not changed in six weeks, and a dashboard is calling the whole dependency chain fresh. Nobody in that chain is lying, exactly. That is precisely what makes it dangerous.

Here is how the illusion is built. A cache sends If-None-Match carrying the entity-tag it already holds. The origin evaluates the condition against the selected representation and answers 304 Not Modified. No representation content crosses the wire. The cache freshens its stored response exactly as the protocol permits — and then somebody’s dashboard takes that green tick and relabels it “dependency chain verified.”

That relabel is where protocol evidence becomes managerial fiction. The 304 can be perfectly correct while the database snapshot behind the application is older than the decision at hand allows. HTTP answered the question it was asked. The dashboard quietly asked a different one and kept the same green light.

What If-None-Match actually asks

RFC 9110 defines If-None-Match in terms of entity-tags for the selected representation. On a conditional GET or HEAD, a false condition yields a 304 instead of the 200 that would otherwise carry content. The result is useful precisely because its meaning is bounded: the validator condition was evaluated for the target representation, under HTTP semantics, and nothing more was promised.

A 304 is therefore not an empty 200. It carries no content, but it can carry fields a cache needs to steer itself — depending on the request and response, ETag, Date, Cache-Control, Expires, Content-Location, and Vary. The response lets a cache reconcile stored metadata without dragging the full representation back across the network.

RFC 9111 then specifies how a cache identifies which stored response to update. Strong and weak validators do not play identical roles. Once the corresponding stored response is identified, the cache replaces applicable stored header fields with those supplied in the 304, subject to the specification’s exclusions. It is a disciplined metadata operation — not a declaration about every system that influenced the bytes.

Why representation validity is not dependency currency

An entity-tag belongs to the representation semantics the origin chose. An application might compute it from final bytes, from a version field, from a deployment identifier, or from some other implementation-specific input. HTTP never requires that identifier to encode the version of every database row, policy bundle, feature flag, entitlement feed, or external API result consulted upstream.

The distinction bites the moment a representation is derived from a chain. Suppose the endpoint’s JSON bytes genuinely have not changed since the cache stored them. A 304 is the correct response. But if those bytes were computed from a snapshot that should have refreshed five minutes ago and did not, the unchanged representation faithfully preserves the very staleness an operator most needs to discover. Revalidation confirms continuity at the validator boundary. It does not widen that boundary after the fact.

None of this is an argument against conditional requests. They cut transfer, protect bandwidth, and make caches worth running. Nor is it a claim that every 304 conceals stale data. It is a claim about evidence scope — and evidence scope is a governance problem before it is a monitoring problem. A control should never promote “the selected representation still matches this validator” into “all dependencies are current” without proof that the second sentence was ever tested.

Ask for the lineage the status code never carried

The missing evidence usually exists already. It just lives outside the status code. A high-consequence configuration response can expose or log a dependency snapshot identifier, a source update time, a policy-bundle version, or a materialization watermark alongside its representation validator. The cache can record the request target, the stored-response identity, the conditional fields, the 304 metadata, and the exact decision that consumed the result.

The resulting validation-chain receipt does not replace HTTP. It preserves what HTTP proved and appends what the operating decision actually needs. It is an editorial control synthesis, not an object defined by the IETF or either cited RFC. Its minimum useful fields are:

  • request target and selected representation identity;
  • validator type and value, plus the conditional request fields;
  • response time, status, and the metadata returned with the 304;
  • stored-response identity and the fields updated after validation;
  • upstream snapshot, policy, or dependency versions used to form the representation;
  • the decision, control, or automation that relied on the cached result.

Such a receipt also makes uncertainty visible instead of decorative. If the origin cannot bind the representation to a dependency version, the honest state is “representation revalidated; dependency currency unknown.” Narrower, yes. Infinitely more useful than a green badge that quietly collapses two different questions into one comfortable colour.

Sources