AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
A complex type that specifies the request headers, if any, that you want CloudFront to base caching on for this cache behavior.
For the headers that you specify, CloudFront caches separate versions of a specified
object based on the header values in viewer requests. For example, suppose viewer
logo.jpg contain a custom
product header that
has a value of either
apex, and you configure CloudFront
to cache your content based on values in the
product header. CloudFront
product 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.
public class Headers
The Headers type exposes the following members
Gets and sets the property Items.
A list that contains one
Gets and sets the property Quantity.
The number of different headers that you want CloudFront to base caching on for this cache behavior. You can configure each cache behavior in a web distribution to do one of the following:
Regardless of which option you choose, CloudFront forwards headers to your origin based on whether the origin is an S3 bucket or a custom origin. See the following documentation:
Supported in: 1.3
Supported in: 4.5, 4.0, 3.5
Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms