Overriding response headers

In a request to retrieve an object or object version, you can specify values to be returned in certain response headers. The values you specify in the request override any values that might otherwise be returned for those headers. The headers you can override are returned only in response to a successful request.

To specify response header values, you can use the request headers listed in the table below. The valid values for each request header are the valid values for the corresponding response header.

Request headerResponse header
response-cache-controlCache-Control
response-content-dispositionContent-Disposition
response-content-encodingContent-Encoding
response content-languageContent-Language
response-content-typeContent-Type
response-expiresExpires

This book does not describe the response headers listed above, with the exception of Content-Type. For information about the other response headers, see http://www.w3.org/Protocols/rfc2616/rfc2616.html.