ParametersInCacheKeyAndForwardedToOrigin class
This object determines the values that CloudFront includes in the cache key. These values can include HTTP headers, cookies, and URL query strings. CloudFront uses the cache key to find an object in its cache that it can return to the viewer.
The headers, cookies, and query strings that are included in the cache key
are automatically included in requests that CloudFront sends to the origin.
CloudFront sends a request when it can’t find an object in its cache that
matches the request’s cache key. If you want to send values to the origin
but not include them in the cache key, use
OriginRequestPolicy
.
Constructors
- ParametersInCacheKeyAndForwardedToOrigin({required CachePolicyCookiesConfig cookiesConfig, required bool enableAcceptEncodingGzip, required CachePolicyHeadersConfig headersConfig, required CachePolicyQueryStringsConfig queryStringsConfig, bool? enableAcceptEncodingBrotli})
- ParametersInCacheKeyAndForwardedToOrigin.fromXml(XmlElement elem)
-
factory
Properties
-
An object that determines whether any cookies in viewer requests (and if so,
which cookies) are included in the cache key and automatically included in
requests that CloudFront sends to the origin.
final
- enableAcceptEncodingBrotli → bool?
-
A flag that can affect whether the
Accept-Encoding
HTTP header is included in the cache key and included in requests that CloudFront sends to the origin.final - enableAcceptEncodingGzip → bool
-
A flag that can affect whether the
Accept-Encoding
HTTP header is included in the cache key and included in requests that CloudFront sends to the origin.final - hashCode → int
-
The hash code for this object.
no setterinherited
- headersConfig → CachePolicyHeadersConfig
-
An object that determines whether any HTTP headers (and if so, which
headers) are included in the cache key and automatically included in
requests that CloudFront sends to the origin.
final
- queryStringsConfig → CachePolicyQueryStringsConfig
-
An object that determines whether any URL query strings in viewer requests
(and if so, which query strings) are included in the cache key and
automatically included in requests that CloudFront sends to the origin.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
toXml(
String elemName, {List< XmlAttribute> ? attributes}) → XmlElement
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited