304 Not Modified

A conditional GET or HEAD can reuse a stored representation instead of receiving the document content again.

All HTTP status codes

What does HTTP 304 mean?

A 304 has no replacement document body. It tells a client with a matching cached representation to reuse that content, updating applicable metadata. This is expected during revalidation. If a page remains stale after release, inspect validator generation, cache keys and the stored representation rather than expecting fresh HTML inside the 304 response itself.

An investigation example

Illustrative stale-page investigation
Conditional request receives 304 Not Modified.
Fresh request without the old validator receives revised HTML.
Cause: an intermediary reuses an incorrect validator.
Action: repair invalidation and validator handling.
Verify: both a returning browser and a fresh session display the release.

When this response is used

  • A browser sends If-None-Match with an ETag from a previous response.
  • A cache revalidates an existing object using If-Modified-Since.

Diagnose the response

Check the request validators and cached body together; an unconditional fetch helps distinguish cache faults from origin content faults.

  • Compare a conditional GET with a GET that omits cache validators to obtain the current representation. For HEAD, expect headers without document content even when the status is 200.
  • Check that ETag or Last-Modified changes when the underlying representation changes. Incorrect validators can cause clients to reuse stale HTML, scripts or styles.
  • Inspect browser, CDN and origin cache layers separately. Purging one layer may not help if another layer continues to validate an obsolete version as current.

What it means for website monitoring

Compare like-for-like request headers when diagnosing a status mismatch. A cached browser result and a fresh Sitepulse request can legitimately return different statuses for the same URL.

Reference