The Content-Location
header indicates an alternate location for the returned data. The principal use is to indicate the URL of a resource transmitted as the result of content negotiation.
Location
and Content-Location
are different. Location
indicates the URL of a redirect, while Content-Location
indicates the direct URL to use to access the resource, without further content negotiation in the future. Location
is a header associated with the response, while Content-Location
is associated with the data returned. This distinction may seem abstract without examples.
Header type | Representation header |
---|---|
Forbidden header name | no |