Back to HTTP Headers
Request

HTTP If-None-Match Header

Makes the request conditional. The server responds with 304 Not Modified if the resource's ETag matches the provided value. Otherwise returns the full resource with 200.

Purpose

Enables efficient cache validation by checking if a resource has changed via its ETag. Saves bandwidth by avoiding full downloads of unchanged content.

If-None-Match: "<etag-value>" If-None-Match: "<etag1>", "<etag2>" If-None-Match: *

Code Examples

See how to use the If-None-Match header in different tools and languages.

curl -I -H 'If-None-Match: "33a64df551425fcc55e4d42a148795d9f25f89d4"' \
  https://api.example.com/resource
# Response: 304 Not Modified (or 200 with new content)

Related Headers

Test Your APIs

if-none-match headerhttp if-none-matchhttp headers guide