Hint
ETag is a fingerprint the server sends; browser sends If-None-Match on revalidation — 304 Not Modified skips re-downloading the body
An ETag (Entity Tag) is an opaque identifier the server assigns to a specific version of a resource.
// Server response
HTTP/1.1 200 OK
ETag: "abc123"
Cache-Control: no-cache
Content-Type: text/html
Revalidation flow:
no-cache), browser sends: If-None-Match: "abc123"304 Not Modified with no body — saves bandwidth.200 OK with new content and new ETag.Last-Modified / If-Modified-Since — older alternative using a timestamp instead of a hash. Less reliable (timestamps can be off).
When browsers use conditional requests:
Cache-Control: no-cache is set (revalidate every time).max-age has expired.