Revalidate with 304
03A conditional request asks the origin whether a stored representation can still be used.
The cache selects the matching entry, updates it under §4.3.4, and serves its saved content.
Key idea: An unchanged representation can reuse its stored content.
Rules & examples
An unchanged representation can reuse its stored content.
- Validation can send If-None-Match with stored entity tags, or an appropriate Last-Modified condition.
- A 304 response has no representation content; it identifies stored responses that can be freshened under the matching rules.
- Apply the 304 metadata to the identified stored responses before reusing their content. A changed representation can instead produce a new full response.
A 304 is not an empty replacement for the saved body. If a cache has no suitable stored response, it cannot invent the missing representation.
Sources
New to this? Start hereA quick picture + helpful background
A request starts a conversation.
A client asks for a resource. A server sends a response. The method, address, headers, and status explain what that conversation means.
Helpful first, if these ideas are unfamiliar
These pictures are analogies to help you learn. The linked RFC explains the actual rules.
Related RFCs and changes
“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.