Warning

The Warning header, as the name implies, is intended to relay additional information about potential problems related to the response. In practice, it is normally used to alert the Web client to problems in a caching system.

The basic format of a Warning header is as follows:

Warning: 110 proxya.localdomain “Response is stale” 

Optionally, a date can also be included after the error description. If included, the date should be in a proper HTTP format and enclosed with quotation marks, although many implementations fail to include the quotation marks.

The following warning codes are defined in the HTTP specification.

110 Response is stale

This simply indicates that the resource being returned is a stale copy from the caching system that issues this warning.

111 Revalidation failed

If for some reason the proxy cannot revalidate the cached copy of a resource with the origin server, it may return the unvalidated response and include this warning. This condition may occur when the origin server cannot be contacted by the proxy that issues this warning.

112 Disconnected operation

This indicates that the proxy is intentionally disconnected from the network.

113 Heuristic expiration

If the proxy returns a resource that has an age of more than 24 hours, because it determines the freshness lifetime is greater than that through heuristic measures, it must include this warning.

199 Miscellaneous warning

This warning is reserved for miscellaneous use. The brief description of the warning will be specific to the situation (rather than “Miscellaneous warning”).

214 Transformation applied

This indicates that the cached response being sent has been modified in some way.

299 Miscellaneous persistent warning

This warning is reserved for miscellaneous use. It is used exactly as 199 Miscellaneous warning, except that the use of this warning indicates that the miscellaneous problem is recurring. Thus, the use of this warning is a way to indicate an increased need for concern.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.27.58