Method: Aws::CloudFront::Types::ForwardedValues#headers
- Defined in:
- lib/aws-sdk-cloudfront/types.rb
#headers ⇒ Types::Headers
This field is deprecated. We recommend that you use a cache policy or an origin request policy instead of this field.
If you want to include headers in the cache key, use a cache policy. For more information, see [Creating cache policies] in the *Amazon CloudFront Developer Guide*.
If you want to send headers to the origin but not include them in the cache key, use an origin request policy. For more information, see [Creating origin request policies] in the *Amazon CloudFront Developer Guide*.
A complex type that specifies the ‘Headers`, if any, that you want CloudFront to forward to the origin for this cache behavior (whitelisted headers). For the headers that you specify, CloudFront also caches separate versions of a specified object that is based on the header values in viewer requests.
For more information, see [ Caching Content Based on Request Headers] in the *Amazon CloudFront Developer Guide*.
[1]: docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html#cache-key-create-cache-policy [2]: docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html#origin-request-create-origin-request-policy [3]: docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/header-caching.html
4681 4682 4683 4684 4685 4686 4687 4688 |
# File 'lib/aws-sdk-cloudfront/types.rb', line 4681 class ForwardedValues < Struct.new( :query_string, :cookies, :headers, :query_string_cache_keys) SENSITIVE = [] include Aws::Structure end |