A 304 response is correct when a conditional request can reuse the stored representation. It is a defect when the server reports unchanged content after a material revision that should invalidate that representation. Test those conditions against known versions before blaming an old search snippet on caching.
Build a request matrix containing the URL, request headers, current revision, validator, response status and body checksum where a body is returned. Keep a clean unconditional response beside the conditional tests. A screenshot of a browser reusing a page cannot show whether the server’s validator is correct.
The edge and origin diagnosis handles stale directives across delivery layers. This procedure isolates a different question: does the endpoint correctly distinguish unchanged content from the revised resource?
Define the validator and its owner
MDN’s conditional request guide explains how a client sends a validator and the server can return 304 when the representation has not changed, allowing cached content to be reused. A 304 normally avoids retransmitting the representation body. An empty body in that response is therefore not a missing-content incident.
Record whether the endpoint emits ETag, Last-Modified or both. Treat ETag as a server-defined identifier rather than assuming it is a file hash. Find the application, build system or delivery layer responsible for generating it. A CDN may transform representations, so compare equivalent request contexts.
MDN’s Last-Modified reference describes a modification timestamp in GMT and notes that it is less accurate than an ETag for determining content changes. Do not generate it from the time each visitor requests the page. Conversely, a deployment that preserves an obsolete timestamp can conceal a real revision.
Create an explicit request matrix
Use a public test fixture or an authorized staging route. Preserve one known old representation and one current representation, including their approved text. Begin with an unconditional GET, then send a request with the current ETag, then one with the old ETag. Test date-based validation separately so a second conditional header does not make the result ambiguous.
Record the requested URL and final response, including any redirects. Keep relevant representation differences such as language and content encoding consistent. A validator from a French edition is not automatically a meaningful test for an English response.
Your acceptance rows should identify unchanged-current, changed-since-old and unconditional-current behavior. If a query parameter changes the resource, treat it separately. Do not invent a cache-busting URL and then claim its successful response proves that the ordinary URL is repaired.
Work through a fictional revision failure
Imagine a fictional public setup guide. Revision A says an administrator must approve the connection. Revision B adds a newly required permission. Both are approved instructional versions in this example. The current unconditional response returns B, but its strong ETag remains the identifier assigned to A.
A client holding A sends that old identifier in If-None-Match. The server returns 304, and the client correctly reuses A under the response it received. Repeated reloads can leave the visitor without the new prerequisite. The immediate defect is the validator implementation, not the browser’s refusal to invent a change.
The owner corrects the revision relationship. An unconditional request now returns B with its current identifier. A request using A’s identifier returns B with a full successful response; a request using B’s identifier returns the expected unchanged response. The tested statuses have meaning because the team knows which material each validator represents.
These are invented responses, not a production incident or a promise about a particular hosting provider. A weak validator can represent semantically equivalent variations under its own rules. This fixture deliberately concerns a material instructional change and a strong validator.
Keep content dates separate from transport evidence
Last-Modified, a visible editorial date and a sitemap lastmod can describe related changes, but they are not interchangeable fields. Preserve the meaning and owner of each. A nightly build is not evidence that every article received a substantive edit, and a backdated editorial label should not silently determine an HTTP modification timestamp.
Use the sitemap change record to maintain truthful content history. Check the relevant cache layer after correcting the validator so ordinary requests reach the intended version. Preserve old and new checksums without publishing private headers or credentials.
Google’s status-code guidance describes 304 as signaling unchanged content to the next processing system. It does not establish that a particular snippet will update immediately after a fix. Keep the transport defect and the later search observation in separate records.
Preserve a negative fixture
Include a request with no conditional headers and a request carrying a deliberately obsolete validator. Both should obtain the approved current representation under the fixture’s design. These cases catch a handler that returns 304 too broadly regardless of what the client supplied.
Keep a separate unchanged-current request to demonstrate that the repair did not simply disable validation. Eliminating every 304 may hide the defect while discarding useful cache behavior. The contract should preserve correct reuse and correct invalidation together.
Close with a reproducible freshness contract
Retest the same endpoint through the ordinary delivery path after deployment. Require the approved current body, correct conditional behavior and consistent relevant headers. A configuration change accepted by the server is not yet a verified public response.
Put those cases into a bounded regression fixture with the engineering owner. Preserve the old representation or a synthetic equivalent so the changed-content case does not disappear when the fixture updates. Test a second route sharing the validator generator when a common implementation is involved.
The release annotation should identify what shipped and when the public result was observed. Close the defect when the request matrix passes. Review search evidence later without promising indexing, freshness credit or a snippet change on a fixed schedule.
