Concept Flow - Response headers (Cache-Control, ETag)
Client sends request
Server processes request
Server adds Cache-Control header
Server adds ETag header
Server sends response with headers
Client caches response based on Cache-Control
Client sends conditional request with If-None-Match
Server compares ETag
Match No
Send 304
The client requests data; the server adds Cache-Control and ETag headers to control caching. The client uses ETag to check if data changed, reducing data transfer.