53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
# File 'lib/cloudfront/helpers/cache_behavior.rb', line 53
def cache_behavior_body(xml)
unless @is_default
xml.PathPattern @path_pattern
end
xml.TargetOriginId @target_origin_id
xml.ForwardedValues {
xml.QueryString @query_string_forward
xml.Cookies {
xml.Forward @cookies_forward_policy
if (@cookies_forward_policy == "whitelist")
xml.WhitelistedNames {
xml.Quantity @cookies_to_forward.size
if (@cookies_to_forward.size > 0)
xml.Items {
for cookie in @cookies_to_forward
xml.Name cookie
end
}
end
}
end
}
}
@trusted_signers.build_xml(xml)
xml.ViewerProtocolPolicy @viewer_protocol_policy
xml.MinTTL @min_ttl
end
|