IfNoneMatch
IfNoneMatch is an HTTP request header used to make a request conditional on the current state of a resource, as identified by its ETag (entity tag). Clients send one or more ETag values, or the special value "*", to indicate that the request should proceed only if the resource’s current ETag does not match any of the listed values or, in the case of "*", that the resource does not exist. This enables cache validation and optimistic concurrency control.
The header’s value consists of a comma-separated list of ETag values. Each value is an ETag, which
- GET and HEAD: If the resource’s current ETag matches any value in the list, the server may
- Methods that modify state (such as PUT, POST, DELETE, PATCH): If the condition is not met (a
IfNoneMatch relies on ETag values provided by the server as validators of resource state. It is often