Table of Contents

HTTP - Cache Validator

About

A validator is a value of an header that is used in a cache validation (conditional request) to see if the resource send has changed.

An header value is referred to as a validator when it is:

The standard validators are:

Additional validators that reflects resource state may be added and used by other extensions of HTTP, such as Web Distributed Authoring and Versioning.

Weak versus Strong

Validators come in two flavors: strong or weak.

Weak

Weak validators are easy to generate but are far less useful for resource comparisons.

Weak validation may also be used considers two versions of the document as identical if the content is logically equivalent.

For instance:

Strong

Strong validators are ideal for comparisons but can be very difficult to generate. They should change if the resource has changed.

In a strong validation, if the content/metadata has slightly changed, the validation does not pass.

Documentation / Reference