conditional request

An HTTP request that the server carries out only if a condition in its headers is true, such as If-None-Match or If-Match.

In more detail

Conditional reads save bandwidth: the server replies 304 when the client already has the current version. Conditional writes prevent lost updates: the server replies 412 when the version the client read is no longer current.

Example

In the browser: An unchanged resource costs only a short 304 Not Modified reply instead of the whole body.

Related terms

Taught in

References