Open In App

HTTP headers | If-Match

The HTTP headers If-Match is request-type header. It is used to make the request conditional. If it matches one of the listed conditional ETags then the server will send back the requested resource for PUT and other non-safe methods, it will only upload the resource in this case.

This ETag header uses a string comparison algorithm. Using this header are two common use cases:



Syntax

If-Match:<*;
If-Match:<etag_value>, <etag_value>, ...

Directives: This header accept two directives as mentioned above and described below:



Examples:

If-Match: *
If-Match: "afyr456nfk560hfef5bhoy007dfhgfd9h"

To check the HTTP headers If-Match in action go to Inspect Element -> Network check the request header

Supported Browsers: The browsers are compatible with HTTP header If-Match are listed below:

Article Tags :