

allViewer – All HTTP headers in viewer requests are included in requests that CloudFront sends to the origin.whitelist – Only the HTTP headers that are listed in the Headers type are included in requests that CloudFront sends to the origin.Even when this field is set to none, any headers that are listed in a CachePolicy are included in origin requests. none – No HTTP headers in viewer requests are included in requests that CloudFront sends to the origin.These can include headers from viewer requests and additional headers added by CloudFront.ĭetermines whether any HTTP headers are included in requests that CloudFront sends to the origin. The HTTP headers to include in origin requests. The comment cannot be longer than 128 characters.Ī unique name to identify the origin request policy. The date and time when the origin request policy was last modified.Ī comment to describe the origin request policy. The unique identifier for the origin request policy. create_origin_request_policy ( OriginRequestPolic圜onfig = įor more information about origin request policies, see Controlling origin requests in the Amazon CloudFront Developer Guide. If you want to send values to the origin and also include them in the cache key, use CachePolicy. These can include items from the viewer request and, in the case of headers, additional ones that are added by CloudFront.ĬloudFront sends a request when it can't find a valid object in its cache that matches the request.

All HTTP headers, cookies, and URL query strings that are specified in the cache policy or the origin request policy.The headers that CloudFront automatically includes in every origin request, including Host, User-Agent, and X-Amz-Cf-Id.The request body and the URL path (without the domain name) from the viewer request.Each request that CloudFront sends to the origin includes the following: When it's attached to a cache behavior, the origin request policy determines the values that CloudFront includes in requests that it sends to the origin. Create_origin_request_policy ¶ create_origin_request_policy ( **kwargs ) ¶Īfter you create an origin request policy, you can attach it to one or more cache behaviors.
