5.3. Request Redirection

Other HTTP features important for caching and replication are its mechanisms for redirecting a request from one server to another. A server may redirect a request to a proxy cache or a mirror server, or it may notify the client of the set of proxies and mirrors that can service the request. HTTP servers implement request redirection by returning a response with special redirection status codes. The main redirection status codes are shown in Table 5.4.

A server can use a response with the "300 Multiple Choices" status code to provide a client with a list of locations that can satisfy the request. The locations and their characteristics are specified in the entity portion of the response.

Table 5.4. Status Codes for Request ...

Get Web Caching and Replication now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.