If-None-Match

The request header that sends back an ETag and asks the server to answer 304 Not Modified if that version is still current.

In more detail

It is used on reads: a client that already holds a copy asks whether it is still useful, saving the body when it is. If the tag still matches, the server answers 304 Not Modified with no body; otherwise it sends the new representation.

Example

curl -si localhost:8765/tasks/1 -H 'If-None-Match: "1"'

Related terms

Taught in

References