If-Match

If-Match

 


 

 

Like the If-Modified-Since header, the If-Match header can be used to make a request conditional. Instead of a date, the If-Match request uses an entity tag. The server compares the entity tag in the If-Match header with the current entity tag of the resource and returns the object if the tags match.

The server should use the If-Match value of "*" to match any entity tag it has for a resource; "*" will always match, unless the server no longer has the resource.

This header is useful for updating resources that a client or cache already has. The resource is returned only if it has changedthat is, if the previously requested object's entity tag does not match the entity tag of the current version on the server. Chapter 7discusses conditional requests in detail.

Type

Request header

Basic Syntax

If-Match: ("*" | 1# entity-tag)

Example

If-Match: "11e92a-457b-31345aa"

 



HTTP. The Definitive Guide
HTTP: The Definitive Guide
ISBN: 1565925092
EAN: 2147483647
Year: 2001
Pages: 294

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net