@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ParametersInCacheKeyAndForwardedToOrigin extends Object implements Serializable, Cloneable
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 CreateOriginRequestPolicy
.
Constructor and Description |
---|
ParametersInCacheKeyAndForwardedToOrigin() |
Modifier and Type | Method and Description |
---|---|
ParametersInCacheKeyAndForwardedToOrigin |
clone() |
boolean |
equals(Object obj) |
CachePolicyCookiesConfig |
getCookiesConfig()
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.
|
Boolean |
getEnableAcceptEncodingGzip()
A flag that determines whether the
Accept-Encoding HTTP header is included in the cache key and
included in requests that CloudFront sends to the origin. |
CachePolicyHeadersConfig |
getHeadersConfig()
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.
|
CachePolicyQueryStringsConfig |
getQueryStringsConfig()
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.
|
int |
hashCode() |
Boolean |
isEnableAcceptEncodingGzip()
A flag that determines whether the
Accept-Encoding HTTP header is included in the cache key and
included in requests that CloudFront sends to the origin. |
void |
setCookiesConfig(CachePolicyCookiesConfig cookiesConfig)
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.
|
void |
setEnableAcceptEncodingGzip(Boolean enableAcceptEncodingGzip)
A flag that determines whether the
Accept-Encoding HTTP header is included in the cache key and
included in requests that CloudFront sends to the origin. |
void |
setHeadersConfig(CachePolicyHeadersConfig headersConfig)
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.
|
void |
setQueryStringsConfig(CachePolicyQueryStringsConfig queryStringsConfig)
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.
|
String |
toString()
Returns a string representation of this object.
|
ParametersInCacheKeyAndForwardedToOrigin |
withCookiesConfig(CachePolicyCookiesConfig cookiesConfig)
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.
|
ParametersInCacheKeyAndForwardedToOrigin |
withEnableAcceptEncodingGzip(Boolean enableAcceptEncodingGzip)
A flag that determines whether the
Accept-Encoding HTTP header is included in the cache key and
included in requests that CloudFront sends to the origin. |
ParametersInCacheKeyAndForwardedToOrigin |
withHeadersConfig(CachePolicyHeadersConfig headersConfig)
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.
|
ParametersInCacheKeyAndForwardedToOrigin |
withQueryStringsConfig(CachePolicyQueryStringsConfig queryStringsConfig)
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.
|
public ParametersInCacheKeyAndForwardedToOrigin()
public void setEnableAcceptEncodingGzip(Boolean enableAcceptEncodingGzip)
A flag that determines whether the Accept-Encoding
HTTP header is included in the cache key and
included in requests that CloudFront sends to the origin.
If this field is true
and the viewer request includes the Accept-Encoding
header, then CloudFront normalizes the value of the viewer’s Accept-Encoding
header to one of the
following:
Accept-Encoding: gzip
(if gzip
is in the viewer’s Accept-Encoding
header)
Accept-Encoding: identity
(if gzip
is not in the viewer’s
Accept-Encoding
header)
CloudFront includes the normalized header in the cache key and includes it in requests that CloudFront sends to the origin.
If this field is false
, then CloudFront treats the Accept-Encoding
header the same as
any other HTTP header in the viewer request. By default, it’s not included in the cache key and it’s not included
in origin requests. You can manually add Accept-Encoding
to the headers whitelist like any other
HTTP header.
When this field is true
, you should not whitelist the Accept-Encoding
header in the
cache policy or in an origin request policy attached to the same cache behavior.
For more information, see Cache compressed objects in the Amazon CloudFront Developer Guide.
enableAcceptEncodingGzip
- A flag that determines whether the Accept-Encoding
HTTP header is included in the cache key
and included in requests that CloudFront sends to the origin.
If this field is true
and the viewer request includes the Accept-Encoding
header, then CloudFront normalizes the value of the viewer’s Accept-Encoding
header to one of
the following:
Accept-Encoding: gzip
(if gzip
is in the viewer’s Accept-Encoding
header)
Accept-Encoding: identity
(if gzip
is not in the viewer’s
Accept-Encoding
header)
CloudFront includes the normalized header in the cache key and includes it in requests that CloudFront sends to the origin.
If this field is false
, then CloudFront treats the Accept-Encoding
header the
same as any other HTTP header in the viewer request. By default, it’s not included in the cache key and
it’s not included in origin requests. You can manually add Accept-Encoding
to the headers
whitelist like any other HTTP header.
When this field is true
, you should not whitelist the Accept-Encoding
header in
the cache policy or in an origin request policy attached to the same cache behavior.
For more information, see Cache compressed objects in the Amazon CloudFront Developer Guide.
public Boolean getEnableAcceptEncodingGzip()
A flag that determines whether the Accept-Encoding
HTTP header is included in the cache key and
included in requests that CloudFront sends to the origin.
If this field is true
and the viewer request includes the Accept-Encoding
header, then CloudFront normalizes the value of the viewer’s Accept-Encoding
header to one of the
following:
Accept-Encoding: gzip
(if gzip
is in the viewer’s Accept-Encoding
header)
Accept-Encoding: identity
(if gzip
is not in the viewer’s
Accept-Encoding
header)
CloudFront includes the normalized header in the cache key and includes it in requests that CloudFront sends to the origin.
If this field is false
, then CloudFront treats the Accept-Encoding
header the same as
any other HTTP header in the viewer request. By default, it’s not included in the cache key and it’s not included
in origin requests. You can manually add Accept-Encoding
to the headers whitelist like any other
HTTP header.
When this field is true
, you should not whitelist the Accept-Encoding
header in the
cache policy or in an origin request policy attached to the same cache behavior.
For more information, see Cache compressed objects in the Amazon CloudFront Developer Guide.
Accept-Encoding
HTTP header is included in the cache key
and included in requests that CloudFront sends to the origin.
If this field is true
and the viewer request includes the
Accept-Encoding
header, then CloudFront normalizes the value of the viewer’s
Accept-Encoding
header to one of the following:
Accept-Encoding: gzip
(if gzip
is in the viewer’s Accept-Encoding
header)
Accept-Encoding: identity
(if gzip
is not in the viewer’s
Accept-Encoding
header)
CloudFront includes the normalized header in the cache key and includes it in requests that CloudFront sends to the origin.
If this field is false
, then CloudFront treats the Accept-Encoding
header the
same as any other HTTP header in the viewer request. By default, it’s not included in the cache key and
it’s not included in origin requests. You can manually add Accept-Encoding
to the headers
whitelist like any other HTTP header.
When this field is true
, you should not whitelist the Accept-Encoding
header in
the cache policy or in an origin request policy attached to the same cache behavior.
For more information, see Cache compressed objects in the Amazon CloudFront Developer Guide.
public ParametersInCacheKeyAndForwardedToOrigin withEnableAcceptEncodingGzip(Boolean enableAcceptEncodingGzip)
A flag that determines whether the Accept-Encoding
HTTP header is included in the cache key and
included in requests that CloudFront sends to the origin.
If this field is true
and the viewer request includes the Accept-Encoding
header, then CloudFront normalizes the value of the viewer’s Accept-Encoding
header to one of the
following:
Accept-Encoding: gzip
(if gzip
is in the viewer’s Accept-Encoding
header)
Accept-Encoding: identity
(if gzip
is not in the viewer’s
Accept-Encoding
header)
CloudFront includes the normalized header in the cache key and includes it in requests that CloudFront sends to the origin.
If this field is false
, then CloudFront treats the Accept-Encoding
header the same as
any other HTTP header in the viewer request. By default, it’s not included in the cache key and it’s not included
in origin requests. You can manually add Accept-Encoding
to the headers whitelist like any other
HTTP header.
When this field is true
, you should not whitelist the Accept-Encoding
header in the
cache policy or in an origin request policy attached to the same cache behavior.
For more information, see Cache compressed objects in the Amazon CloudFront Developer Guide.
enableAcceptEncodingGzip
- A flag that determines whether the Accept-Encoding
HTTP header is included in the cache key
and included in requests that CloudFront sends to the origin.
If this field is true
and the viewer request includes the Accept-Encoding
header, then CloudFront normalizes the value of the viewer’s Accept-Encoding
header to one of
the following:
Accept-Encoding: gzip
(if gzip
is in the viewer’s Accept-Encoding
header)
Accept-Encoding: identity
(if gzip
is not in the viewer’s
Accept-Encoding
header)
CloudFront includes the normalized header in the cache key and includes it in requests that CloudFront sends to the origin.
If this field is false
, then CloudFront treats the Accept-Encoding
header the
same as any other HTTP header in the viewer request. By default, it’s not included in the cache key and
it’s not included in origin requests. You can manually add Accept-Encoding
to the headers
whitelist like any other HTTP header.
When this field is true
, you should not whitelist the Accept-Encoding
header in
the cache policy or in an origin request policy attached to the same cache behavior.
For more information, see Cache compressed objects in the Amazon CloudFront Developer Guide.
public Boolean isEnableAcceptEncodingGzip()
A flag that determines whether the Accept-Encoding
HTTP header is included in the cache key and
included in requests that CloudFront sends to the origin.
If this field is true
and the viewer request includes the Accept-Encoding
header, then CloudFront normalizes the value of the viewer’s Accept-Encoding
header to one of the
following:
Accept-Encoding: gzip
(if gzip
is in the viewer’s Accept-Encoding
header)
Accept-Encoding: identity
(if gzip
is not in the viewer’s
Accept-Encoding
header)
CloudFront includes the normalized header in the cache key and includes it in requests that CloudFront sends to the origin.
If this field is false
, then CloudFront treats the Accept-Encoding
header the same as
any other HTTP header in the viewer request. By default, it’s not included in the cache key and it’s not included
in origin requests. You can manually add Accept-Encoding
to the headers whitelist like any other
HTTP header.
When this field is true
, you should not whitelist the Accept-Encoding
header in the
cache policy or in an origin request policy attached to the same cache behavior.
For more information, see Cache compressed objects in the Amazon CloudFront Developer Guide.
Accept-Encoding
HTTP header is included in the cache key
and included in requests that CloudFront sends to the origin.
If this field is true
and the viewer request includes the
Accept-Encoding
header, then CloudFront normalizes the value of the viewer’s
Accept-Encoding
header to one of the following:
Accept-Encoding: gzip
(if gzip
is in the viewer’s Accept-Encoding
header)
Accept-Encoding: identity
(if gzip
is not in the viewer’s
Accept-Encoding
header)
CloudFront includes the normalized header in the cache key and includes it in requests that CloudFront sends to the origin.
If this field is false
, then CloudFront treats the Accept-Encoding
header the
same as any other HTTP header in the viewer request. By default, it’s not included in the cache key and
it’s not included in origin requests. You can manually add Accept-Encoding
to the headers
whitelist like any other HTTP header.
When this field is true
, you should not whitelist the Accept-Encoding
header in
the cache policy or in an origin request policy attached to the same cache behavior.
For more information, see Cache compressed objects in the Amazon CloudFront Developer Guide.
public void setHeadersConfig(CachePolicyHeadersConfig headersConfig)
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.
headersConfig
- 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.public CachePolicyHeadersConfig getHeadersConfig()
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.
public ParametersInCacheKeyAndForwardedToOrigin withHeadersConfig(CachePolicyHeadersConfig headersConfig)
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.
headersConfig
- 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.public void setCookiesConfig(CachePolicyCookiesConfig cookiesConfig)
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.
cookiesConfig
- 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.public CachePolicyCookiesConfig getCookiesConfig()
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.
public ParametersInCacheKeyAndForwardedToOrigin withCookiesConfig(CachePolicyCookiesConfig cookiesConfig)
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.
cookiesConfig
- 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.public void setQueryStringsConfig(CachePolicyQueryStringsConfig queryStringsConfig)
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.
queryStringsConfig
- 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.public CachePolicyQueryStringsConfig getQueryStringsConfig()
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.
public ParametersInCacheKeyAndForwardedToOrigin withQueryStringsConfig(CachePolicyQueryStringsConfig queryStringsConfig)
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.
queryStringsConfig
- 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.public String toString()
toString
in class Object
Object.toString()
public ParametersInCacheKeyAndForwardedToOrigin clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.