AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
A complex type that describes the default cache behavior if you do not specify a
element or if files don't match any of the values of
elements. You must create exactly one default cache behavior.
public class DefaultCacheBehavior
The DefaultCacheBehavior type exposes the following members
Gets and sets the property AllowedMethods.
Gets and sets the property Compress.
Whether you want CloudFront to automatically compress certain files for this cache
behavior. If so, specify
Gets and sets the property DefaultTTL.
The default amount of time that you want objects to stay in CloudFront caches before
CloudFront forwards another request to your origin to determine whether the object
has been updated. The value that you specify applies only when your origin does not
add HTTP headers such as
Gets and sets the property ForwardedValues.
A complex type that specifies how CloudFront handles query strings and cookies.
Gets and sets the property LambdaFunctionAssociations.
A complex type that contains zero or more Lambda function associations for a cache behavior.
Gets and sets the property MaxTTL.
Gets and sets the property MinTTL.
The minimum amount of time that you want objects to stay in CloudFront caches before CloudFront forwards another request to your origin to determine whether the object has been updated. For more information, see Specifying How Long Objects and Errors Stay in a CloudFront Edge Cache (Expiration) in the Amazon Amazon CloudFront Developer Guide.
You must specify
Gets and sets the property SmoothStreaming.
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
Gets and sets the property TargetOriginId.
The value of
Gets and sets the property TrustedSigners.
A complex type that specifies the AWS accounts, if any, that you want to allow to create signed URLs for private content.
If you want to require signed URLs in requests for objects in the target origin that
If you don't want to require signed URLs in requests for objects that match
To add, change, or remove one or more trusted signers, change
Gets and sets the property ViewerProtocolPolicy.
The protocol that viewers can use to access the files in the origin specified by
For more information about requiring the HTTPS protocol, see Using an HTTPS Connection to Access Your Objects 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 Specifying How Long Objects and Errors Stay in a CloudFront Edge Cache (Expiration) in the Amazon CloudFront Developer Guide.
Supported in: 1.3
Supported in: 4.5, 4.0, 3.5
Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms