A complex type that specifies the headers that you want CloudFront to forward to the origin for this cache behavior.
For the headers that you specify, CloudFront also caches separate versions of a specified
object based on the header values in viewer requests. For example, suppose viewer requests for
logo.jpg contain a custom
Product header that has a value of
Apex, and you configure CloudFront to cache your content
based on values in the
Product header. CloudFront forwards the
header to the origin and caches the response from the origin once for each header value. For
more information about caching based on header values, see How CloudFront Forwards and Caches Headers in the
Amazon CloudFront Developer Guide.
A complex type that contains one
Nameelement for each header that you want CloudFront to forward to the origin and to vary on for this cache behavior. If
Type: array of Strings
The number of different headers that you want CloudFront to forward to the origin for this cache behavior. You can configure each cache behavior in a web distribution to do one of the following:
Forward all headers to your origin: Specify
If you configure CloudFront to forward all headers to your origin, CloudFront doesn't cache the objects associated with this cache behavior. Instead, it sends every request to the origin.
Forward a whitelist of headers you specify: Specify the number of headers that you want to forward, and specify the header names in
Nameelements. CloudFront caches your objects based on the values in all of the specified headers. CloudFront also forwards the headers that it forwards by default, but it caches your objects based only on the headers that you specify.
Forward only the default headers: Specify
Items. In this configuration, CloudFront doesn't cache based on the values in the request headers.