AWS SDK for C++
1.9.1
AWS SDK for C++
|
#include <DefaultCacheBehavior.h>
A complex type that describes the default cache behavior if you don’t specify a CacheBehavior
element or if request URLs don’t match any of the values of PathPattern
in CacheBehavior
elements. You must create exactly one default cache behavior.
Definition at line 38 of file DefaultCacheBehavior.h.
Aws::CloudFront::Model::DefaultCacheBehavior::DefaultCacheBehavior | ( | ) |
Aws::CloudFront::Model::DefaultCacheBehavior::DefaultCacheBehavior | ( | const Aws::Utils::Xml::XmlNode & | xmlNode | ) |
void Aws::CloudFront::Model::DefaultCacheBehavior::AddToNode | ( | Aws::Utils::Xml::XmlNode & | parentNode | ) | const |
|
inline |
Definition at line 428 of file DefaultCacheBehavior.h.
|
inline |
The unique identifier of the cache policy that is attached to the default cache behavior. For more information, see Creating cache policies or Using the managed cache policies in the Amazon CloudFront Developer Guide.
Definition at line 700 of file DefaultCacheBehavior.h.
|
inline |
Whether you want CloudFront to automatically compress certain files for this cache behavior. If so, specify true
; if not, specify false
. For more information, see Serving Compressed Files in the Amazon CloudFront Developer Guide.
Definition at line 500 of file DefaultCacheBehavior.h.
|
inline |
The value of ID
for the field-level encryption configuration that you want CloudFront to use for encrypting specific fields of data for the default cache behavior.
Definition at line 570 of file DefaultCacheBehavior.h.
|
inline |
Definition at line 425 of file DefaultCacheBehavior.h.
|
inline |
The unique identifier of the cache policy that is attached to the default cache behavior. For more information, see Creating cache policies or Using the managed cache policies in the Amazon CloudFront Developer Guide.
Definition at line 689 of file DefaultCacheBehavior.h.
|
inline |
Whether you want CloudFront to automatically compress certain files for this cache behavior. If so, specify true
; if not, specify false
. For more information, see Serving Compressed Files in the Amazon CloudFront Developer Guide.
Definition at line 491 of file DefaultCacheBehavior.h.
|
inline |
The value of ID
for the field-level encryption configuration that you want CloudFront to use for encrypting specific fields of data for the default cache behavior.
Definition at line 563 of file DefaultCacheBehavior.h.
|
inline |
A complex type that contains zero or more Lambda function associations for a cache behavior.
Definition at line 525 of file DefaultCacheBehavior.h.
|
inline |
The unique identifier of the origin request policy that is attached to the default cache behavior. For more information, see Creating origin request policies or Using the managed origin request policies in the Amazon CloudFront Developer Guide.
Definition at line 778 of file DefaultCacheBehavior.h.
|
inline |
The Amazon Resource Name (ARN) of the real-time log configuration that is attached to this cache behavior. For more information, see Real-time logs in the Amazon CloudFront Developer Guide.
Definition at line 621 of file DefaultCacheBehavior.h.
|
inline |
Indicates whether you want to distribute media files in the Microsoft Smooth Streaming format using the origin that is associated with this cache behavior. If so, specify true
; if not, specify false
. If you specify true
for SmoothStreaming
, you can still distribute other content using this cache behavior if the content matches the value of PathPattern
.
Definition at line 451 of file DefaultCacheBehavior.h.
|
inline |
The value of ID
for the origin that you want CloudFront to route requests to when they use the default cache behavior.
Definition at line 52 of file DefaultCacheBehavior.h.
|
inline |
A list of key groups that CloudFront can use to validate signed URLs or signed cookies.
When a cache behavior contains trusted key groups, CloudFront requires signed URLs or signed cookies for all requests that match the cache behavior. The URLs or cookies must be signed with a private key whose corresponding public key is in the key group. The signed URL or cookie contains information about which public key CloudFront should use to verify the signature. For more information, see Serving private content in the Amazon CloudFront Developer Guide.
Definition at line 199 of file DefaultCacheBehavior.h.
|
inline |
We recommend using TrustedKeyGroups
instead of TrustedSigners
.
A list of AWS account IDs whose public keys CloudFront can use to validate signed URLs or signed cookies.
When a cache behavior contains trusted signers, CloudFront requires signed URLs or signed cookies for all requests that match the cache behavior. The URLs or cookies must be signed with the private key of a CloudFront key pair in a trusted signer’s AWS account. The signed URL or cookie contains information about which public key CloudFront should use to verify the signature. For more information, see Serving private content in the Amazon CloudFront Developer Guide.
Definition at line 110 of file DefaultCacheBehavior.h.
|
inline |
The protocol that viewers can use to access the files in the origin specified by TargetOriginId
when a request matches the path pattern in PathPattern
. You can specify the following options:
allow-all
: Viewers can use HTTP or HTTPS.
redirect-to-https
: If a viewer submits an HTTP request, CloudFront returns an HTTP status code of 301 (Moved Permanently) to the viewer along with the HTTPS URL. The viewer then resubmits the request using the new URL.
https-only
: If a viewer sends an HTTP request, CloudFront returns an HTTP status code of 403 (Forbidden).
For more information about requiring the HTTPS protocol, see Requiring HTTPS Between Viewers and CloudFront in the Amazon CloudFront Developer Guide.
The only way to guarantee that viewers retrieve an object that was fetched from the origin using HTTPS is never to use any other protocol to fetch the object. If you have recently changed from HTTP to HTTPS, we recommend that you clear your objects’ cache because cached objects are protocol agnostic. That means that an edge location will return an object from the cache regardless of whether the current request protocol matches the protocol used previously. For more information, see Managing Cache Expiration in the Amazon CloudFront Developer Guide.
Definition at line 291 of file DefaultCacheBehavior.h.
|
inline |
A complex type that contains zero or more Lambda function associations for a cache behavior.
Definition at line 531 of file DefaultCacheBehavior.h.
DefaultCacheBehavior& Aws::CloudFront::Model::DefaultCacheBehavior::operator= | ( | const Aws::Utils::Xml::XmlNode & | xmlNode | ) |
|
inline |
The unique identifier of the origin request policy that is attached to the default cache behavior. For more information, see Creating origin request policies or Using the managed origin request policies in the Amazon CloudFront Developer Guide.
Definition at line 789 of file DefaultCacheBehavior.h.
|
inline |
The Amazon Resource Name (ARN) of the real-time log configuration that is attached to this cache behavior. For more information, see Real-time logs in the Amazon CloudFront Developer Guide.
Definition at line 629 of file DefaultCacheBehavior.h.
|
inline |
Definition at line 434 of file DefaultCacheBehavior.h.
|
inline |
Definition at line 431 of file DefaultCacheBehavior.h.
|
inline |
The unique identifier of the cache policy that is attached to the default cache behavior. For more information, see Creating cache policies or Using the managed cache policies in the Amazon CloudFront Developer Guide.
Definition at line 722 of file DefaultCacheBehavior.h.
|
inline |
The unique identifier of the cache policy that is attached to the default cache behavior. For more information, see Creating cache policies or Using the managed cache policies in the Amazon CloudFront Developer Guide.
Definition at line 711 of file DefaultCacheBehavior.h.
|
inline |
The unique identifier of the cache policy that is attached to the default cache behavior. For more information, see Creating cache policies or Using the managed cache policies in the Amazon CloudFront Developer Guide.
Definition at line 733 of file DefaultCacheBehavior.h.
|
inline |
Whether you want CloudFront to automatically compress certain files for this cache behavior. If so, specify true
; if not, specify false
. For more information, see Serving Compressed Files in the Amazon CloudFront Developer Guide.
Definition at line 509 of file DefaultCacheBehavior.h.
|
inline |
The value of ID
for the field-level encryption configuration that you want CloudFront to use for encrypting specific fields of data for the default cache behavior.
Definition at line 584 of file DefaultCacheBehavior.h.
|
inline |
The value of ID
for the field-level encryption configuration that you want CloudFront to use for encrypting specific fields of data for the default cache behavior.
Definition at line 577 of file DefaultCacheBehavior.h.
|
inline |
The value of ID
for the field-level encryption configuration that you want CloudFront to use for encrypting specific fields of data for the default cache behavior.
Definition at line 591 of file DefaultCacheBehavior.h.
|
inline |
A complex type that contains zero or more Lambda function associations for a cache behavior.
Definition at line 537 of file DefaultCacheBehavior.h.
|
inline |
A complex type that contains zero or more Lambda function associations for a cache behavior.
Definition at line 543 of file DefaultCacheBehavior.h.
|
inline |
The unique identifier of the origin request policy that is attached to the default cache behavior. For more information, see Creating origin request policies or Using the managed origin request policies in the Amazon CloudFront Developer Guide.
Definition at line 811 of file DefaultCacheBehavior.h.
|
inline |
The unique identifier of the origin request policy that is attached to the default cache behavior. For more information, see Creating origin request policies or Using the managed origin request policies in the Amazon CloudFront Developer Guide.
Definition at line 800 of file DefaultCacheBehavior.h.
|
inline |
The unique identifier of the origin request policy that is attached to the default cache behavior. For more information, see Creating origin request policies or Using the managed origin request policies in the Amazon CloudFront Developer Guide.
Definition at line 822 of file DefaultCacheBehavior.h.
|
inline |
The Amazon Resource Name (ARN) of the real-time log configuration that is attached to this cache behavior. For more information, see Real-time logs in the Amazon CloudFront Developer Guide.
Definition at line 645 of file DefaultCacheBehavior.h.
|
inline |
The Amazon Resource Name (ARN) of the real-time log configuration that is attached to this cache behavior. For more information, see Real-time logs in the Amazon CloudFront Developer Guide.
Definition at line 637 of file DefaultCacheBehavior.h.
|
inline |
The Amazon Resource Name (ARN) of the real-time log configuration that is attached to this cache behavior. For more information, see Real-time logs in the Amazon CloudFront Developer Guide.
Definition at line 653 of file DefaultCacheBehavior.h.
|
inline |
Indicates whether you want to distribute media files in the Microsoft Smooth Streaming format using the origin that is associated with this cache behavior. If so, specify true
; if not, specify false
. If you specify true
for SmoothStreaming
, you can still distribute other content using this cache behavior if the content matches the value of PathPattern
.
Definition at line 471 of file DefaultCacheBehavior.h.
|
inline |
The value of ID
for the origin that you want CloudFront to route requests to when they use the default cache behavior.
Definition at line 70 of file DefaultCacheBehavior.h.
|
inline |
The value of ID
for the origin that you want CloudFront to route requests to when they use the default cache behavior.
Definition at line 64 of file DefaultCacheBehavior.h.
|
inline |
The value of ID
for the origin that you want CloudFront to route requests to when they use the default cache behavior.
Definition at line 76 of file DefaultCacheBehavior.h.
|
inline |
A list of key groups that CloudFront can use to validate signed URLs or signed cookies.
When a cache behavior contains trusted key groups, CloudFront requires signed URLs or signed cookies for all requests that match the cache behavior. The URLs or cookies must be signed with a private key whose corresponding public key is in the key group. The signed URL or cookie contains information about which public key CloudFront should use to verify the signature. For more information, see Serving private content in the Amazon CloudFront Developer Guide.
Definition at line 225 of file DefaultCacheBehavior.h.
|
inline |
A list of key groups that CloudFront can use to validate signed URLs or signed cookies.
When a cache behavior contains trusted key groups, CloudFront requires signed URLs or signed cookies for all requests that match the cache behavior. The URLs or cookies must be signed with a private key whose corresponding public key is in the key group. The signed URL or cookie contains information about which public key CloudFront should use to verify the signature. For more information, see Serving private content in the Amazon CloudFront Developer Guide.
Definition at line 238 of file DefaultCacheBehavior.h.
|
inline |
We recommend using TrustedKeyGroups
instead of TrustedSigners
.
A list of AWS account IDs whose public keys CloudFront can use to validate signed URLs or signed cookies.
When a cache behavior contains trusted signers, CloudFront requires signed URLs or signed cookies for all requests that match the cache behavior. The URLs or cookies must be signed with the private key of a CloudFront key pair in a trusted signer’s AWS account. The signed URL or cookie contains information about which public key CloudFront should use to verify the signature. For more information, see Serving private content in the Amazon CloudFront Developer Guide.
Definition at line 140 of file DefaultCacheBehavior.h.
|
inline |
We recommend using TrustedKeyGroups
instead of TrustedSigners
.
A list of AWS account IDs whose public keys CloudFront can use to validate signed URLs or signed cookies.
When a cache behavior contains trusted signers, CloudFront requires signed URLs or signed cookies for all requests that match the cache behavior. The URLs or cookies must be signed with the private key of a CloudFront key pair in a trusted signer’s AWS account. The signed URL or cookie contains information about which public key CloudFront should use to verify the signature. For more information, see Serving private content in the Amazon CloudFront Developer Guide.
Definition at line 155 of file DefaultCacheBehavior.h.
|
inline |
The protocol that viewers can use to access the files in the origin specified by TargetOriginId
when a request matches the path pattern in PathPattern
. You can specify the following options:
allow-all
: Viewers can use HTTP or HTTPS.
redirect-to-https
: If a viewer submits an HTTP request, CloudFront returns an HTTP status code of 301 (Moved Permanently) to the viewer along with the HTTPS URL. The viewer then resubmits the request using the new URL.
https-only
: If a viewer sends an HTTP request, CloudFront returns an HTTP status code of 403 (Forbidden).
For more information about requiring the HTTPS protocol, see Requiring HTTPS Between Viewers and CloudFront in the Amazon CloudFront Developer Guide.
The only way to guarantee that viewers retrieve an object that was fetched from the origin using HTTPS is never to use any other protocol to fetch the object. If you have recently changed from HTTP to HTTPS, we recommend that you clear your objects’ cache because cached objects are protocol agnostic. That means that an edge location will return an object from the cache regardless of whether the current request protocol matches the protocol used previously. For more information, see Managing Cache Expiration in the Amazon CloudFront Developer Guide.
Definition at line 343 of file DefaultCacheBehavior.h.
|
inline |
The protocol that viewers can use to access the files in the origin specified by TargetOriginId
when a request matches the path pattern in PathPattern
. You can specify the following options:
allow-all
: Viewers can use HTTP or HTTPS.
redirect-to-https
: If a viewer submits an HTTP request, CloudFront returns an HTTP status code of 301 (Moved Permanently) to the viewer along with the HTTPS URL. The viewer then resubmits the request using the new URL.
https-only
: If a viewer sends an HTTP request, CloudFront returns an HTTP status code of 403 (Forbidden).
For more information about requiring the HTTPS protocol, see Requiring HTTPS Between Viewers and CloudFront in the Amazon CloudFront Developer Guide.
The only way to guarantee that viewers retrieve an object that was fetched from the origin using HTTPS is never to use any other protocol to fetch the object. If you have recently changed from HTTP to HTTPS, we recommend that you clear your objects’ cache because cached objects are protocol agnostic. That means that an edge location will return an object from the cache regardless of whether the current request protocol matches the protocol used previously. For more information, see Managing Cache Expiration in the Amazon CloudFront Developer Guide.
Definition at line 369 of file DefaultCacheBehavior.h.
|
inline |
Indicates whether you want to distribute media files in the Microsoft Smooth Streaming format using the origin that is associated with this cache behavior. If so, specify true
; if not, specify false
. If you specify true
for SmoothStreaming
, you can still distribute other content using this cache behavior if the content matches the value of PathPattern
.
Definition at line 461 of file DefaultCacheBehavior.h.
|
inline |
The value of ID
for the origin that you want CloudFront to route requests to when they use the default cache behavior.
Definition at line 58 of file DefaultCacheBehavior.h.
|
inline |
A list of key groups that CloudFront can use to validate signed URLs or signed cookies.
When a cache behavior contains trusted key groups, CloudFront requires signed URLs or signed cookies for all requests that match the cache behavior. The URLs or cookies must be signed with a private key whose corresponding public key is in the key group. The signed URL or cookie contains information about which public key CloudFront should use to verify the signature. For more information, see Serving private content in the Amazon CloudFront Developer Guide.
Definition at line 212 of file DefaultCacheBehavior.h.
|
inline |
We recommend using TrustedKeyGroups
instead of TrustedSigners
.
A list of AWS account IDs whose public keys CloudFront can use to validate signed URLs or signed cookies.
When a cache behavior contains trusted signers, CloudFront requires signed URLs or signed cookies for all requests that match the cache behavior. The URLs or cookies must be signed with the private key of a CloudFront key pair in a trusted signer’s AWS account. The signed URL or cookie contains information about which public key CloudFront should use to verify the signature. For more information, see Serving private content in the Amazon CloudFront Developer Guide.
Definition at line 125 of file DefaultCacheBehavior.h.
|
inline |
The protocol that viewers can use to access the files in the origin specified by TargetOriginId
when a request matches the path pattern in PathPattern
. You can specify the following options:
allow-all
: Viewers can use HTTP or HTTPS.
redirect-to-https
: If a viewer submits an HTTP request, CloudFront returns an HTTP status code of 301 (Moved Permanently) to the viewer along with the HTTPS URL. The viewer then resubmits the request using the new URL.
https-only
: If a viewer sends an HTTP request, CloudFront returns an HTTP status code of 403 (Forbidden).
For more information about requiring the HTTPS protocol, see Requiring HTTPS Between Viewers and CloudFront in the Amazon CloudFront Developer Guide.
The only way to guarantee that viewers retrieve an object that was fetched from the origin using HTTPS is never to use any other protocol to fetch the object. If you have recently changed from HTTP to HTTPS, we recommend that you clear your objects’ cache because cached objects are protocol agnostic. That means that an edge location will return an object from the cache regardless of whether the current request protocol matches the protocol used previously. For more information, see Managing Cache Expiration in the Amazon CloudFront Developer Guide.
Definition at line 317 of file DefaultCacheBehavior.h.
|
inline |
Definition at line 440 of file DefaultCacheBehavior.h.
|
inline |
Definition at line 437 of file DefaultCacheBehavior.h.
|
inline |
The unique identifier of the cache policy that is attached to the default cache behavior. For more information, see Creating cache policies or Using the managed cache policies in the Amazon CloudFront Developer Guide.
Definition at line 755 of file DefaultCacheBehavior.h.
|
inline |
The unique identifier of the cache policy that is attached to the default cache behavior. For more information, see Creating cache policies or Using the managed cache policies in the Amazon CloudFront Developer Guide.
Definition at line 744 of file DefaultCacheBehavior.h.
|
inline |
The unique identifier of the cache policy that is attached to the default cache behavior. For more information, see Creating cache policies or Using the managed cache policies in the Amazon CloudFront Developer Guide.
Definition at line 766 of file DefaultCacheBehavior.h.
|
inline |
Whether you want CloudFront to automatically compress certain files for this cache behavior. If so, specify true
; if not, specify false
. For more information, see Serving Compressed Files in the Amazon CloudFront Developer Guide.
Definition at line 518 of file DefaultCacheBehavior.h.
|
inline |
The value of ID
for the field-level encryption configuration that you want CloudFront to use for encrypting specific fields of data for the default cache behavior.
Definition at line 605 of file DefaultCacheBehavior.h.
|
inline |
The value of ID
for the field-level encryption configuration that you want CloudFront to use for encrypting specific fields of data for the default cache behavior.
Definition at line 598 of file DefaultCacheBehavior.h.
|
inline |
The value of ID
for the field-level encryption configuration that you want CloudFront to use for encrypting specific fields of data for the default cache behavior.
Definition at line 612 of file DefaultCacheBehavior.h.
|
inline |
A complex type that contains zero or more Lambda function associations for a cache behavior.
Definition at line 549 of file DefaultCacheBehavior.h.
|
inline |
A complex type that contains zero or more Lambda function associations for a cache behavior.
Definition at line 555 of file DefaultCacheBehavior.h.
|
inline |
The unique identifier of the origin request policy that is attached to the default cache behavior. For more information, see Creating origin request policies or Using the managed origin request policies in the Amazon CloudFront Developer Guide.
Definition at line 844 of file DefaultCacheBehavior.h.
|
inline |
The unique identifier of the origin request policy that is attached to the default cache behavior. For more information, see Creating origin request policies or Using the managed origin request policies in the Amazon CloudFront Developer Guide.
Definition at line 833 of file DefaultCacheBehavior.h.
|
inline |
The unique identifier of the origin request policy that is attached to the default cache behavior. For more information, see Creating origin request policies or Using the managed origin request policies in the Amazon CloudFront Developer Guide.
Definition at line 855 of file DefaultCacheBehavior.h.
|
inline |
The Amazon Resource Name (ARN) of the real-time log configuration that is attached to this cache behavior. For more information, see Real-time logs in the Amazon CloudFront Developer Guide.
Definition at line 669 of file DefaultCacheBehavior.h.
|
inline |
The Amazon Resource Name (ARN) of the real-time log configuration that is attached to this cache behavior. For more information, see Real-time logs in the Amazon CloudFront Developer Guide.
Definition at line 661 of file DefaultCacheBehavior.h.
|
inline |
The Amazon Resource Name (ARN) of the real-time log configuration that is attached to this cache behavior. For more information, see Real-time logs in the Amazon CloudFront Developer Guide.
Definition at line 677 of file DefaultCacheBehavior.h.
|
inline |
Indicates whether you want to distribute media files in the Microsoft Smooth Streaming format using the origin that is associated with this cache behavior. If so, specify true
; if not, specify false
. If you specify true
for SmoothStreaming
, you can still distribute other content using this cache behavior if the content matches the value of PathPattern
.
Definition at line 481 of file DefaultCacheBehavior.h.
|
inline |
The value of ID
for the origin that you want CloudFront to route requests to when they use the default cache behavior.
Definition at line 88 of file DefaultCacheBehavior.h.
|
inline |
The value of ID
for the origin that you want CloudFront to route requests to when they use the default cache behavior.
Definition at line 82 of file DefaultCacheBehavior.h.
|
inline |
The value of ID
for the origin that you want CloudFront to route requests to when they use the default cache behavior.
Definition at line 94 of file DefaultCacheBehavior.h.
|
inline |
A list of key groups that CloudFront can use to validate signed URLs or signed cookies.
When a cache behavior contains trusted key groups, CloudFront requires signed URLs or signed cookies for all requests that match the cache behavior. The URLs or cookies must be signed with a private key whose corresponding public key is in the key group. The signed URL or cookie contains information about which public key CloudFront should use to verify the signature. For more information, see Serving private content in the Amazon CloudFront Developer Guide.
Definition at line 251 of file DefaultCacheBehavior.h.
|
inline |
A list of key groups that CloudFront can use to validate signed URLs or signed cookies.
When a cache behavior contains trusted key groups, CloudFront requires signed URLs or signed cookies for all requests that match the cache behavior. The URLs or cookies must be signed with a private key whose corresponding public key is in the key group. The signed URL or cookie contains information about which public key CloudFront should use to verify the signature. For more information, see Serving private content in the Amazon CloudFront Developer Guide.
Definition at line 264 of file DefaultCacheBehavior.h.
|
inline |
We recommend using TrustedKeyGroups
instead of TrustedSigners
.
A list of AWS account IDs whose public keys CloudFront can use to validate signed URLs or signed cookies.
When a cache behavior contains trusted signers, CloudFront requires signed URLs or signed cookies for all requests that match the cache behavior. The URLs or cookies must be signed with the private key of a CloudFront key pair in a trusted signer’s AWS account. The signed URL or cookie contains information about which public key CloudFront should use to verify the signature. For more information, see Serving private content in the Amazon CloudFront Developer Guide.
Definition at line 170 of file DefaultCacheBehavior.h.
|
inline |
We recommend using TrustedKeyGroups
instead of TrustedSigners
.
A list of AWS account IDs whose public keys CloudFront can use to validate signed URLs or signed cookies.
When a cache behavior contains trusted signers, CloudFront requires signed URLs or signed cookies for all requests that match the cache behavior. The URLs or cookies must be signed with the private key of a CloudFront key pair in a trusted signer’s AWS account. The signed URL or cookie contains information about which public key CloudFront should use to verify the signature. For more information, see Serving private content in the Amazon CloudFront Developer Guide.
Definition at line 185 of file DefaultCacheBehavior.h.
|
inline |
The protocol that viewers can use to access the files in the origin specified by TargetOriginId
when a request matches the path pattern in PathPattern
. You can specify the following options:
allow-all
: Viewers can use HTTP or HTTPS.
redirect-to-https
: If a viewer submits an HTTP request, CloudFront returns an HTTP status code of 301 (Moved Permanently) to the viewer along with the HTTPS URL. The viewer then resubmits the request using the new URL.
https-only
: If a viewer sends an HTTP request, CloudFront returns an HTTP status code of 403 (Forbidden).
For more information about requiring the HTTPS protocol, see Requiring HTTPS Between Viewers and CloudFront in the Amazon CloudFront Developer Guide.
The only way to guarantee that viewers retrieve an object that was fetched from the origin using HTTPS is never to use any other protocol to fetch the object. If you have recently changed from HTTP to HTTPS, we recommend that you clear your objects’ cache because cached objects are protocol agnostic. That means that an edge location will return an object from the cache regardless of whether the current request protocol matches the protocol used previously. For more information, see Managing Cache Expiration in the Amazon CloudFront Developer Guide.
Definition at line 395 of file DefaultCacheBehavior.h.
|
inline |
The protocol that viewers can use to access the files in the origin specified by TargetOriginId
when a request matches the path pattern in PathPattern
. You can specify the following options:
allow-all
: Viewers can use HTTP or HTTPS.
redirect-to-https
: If a viewer submits an HTTP request, CloudFront returns an HTTP status code of 301 (Moved Permanently) to the viewer along with the HTTPS URL. The viewer then resubmits the request using the new URL.
https-only
: If a viewer sends an HTTP request, CloudFront returns an HTTP status code of 403 (Forbidden).
For more information about requiring the HTTPS protocol, see Requiring HTTPS Between Viewers and CloudFront in the Amazon CloudFront Developer Guide.
The only way to guarantee that viewers retrieve an object that was fetched from the origin using HTTPS is never to use any other protocol to fetch the object. If you have recently changed from HTTP to HTTPS, we recommend that you clear your objects’ cache because cached objects are protocol agnostic. That means that an edge location will return an object from the cache regardless of whether the current request protocol matches the protocol used previously. For more information, see Managing Cache Expiration in the Amazon CloudFront Developer Guide.
Definition at line 421 of file DefaultCacheBehavior.h.