BackendBucketCdnPolicy class

Constructors

BackendBucketCdnPolicy({Input<List<BackendBucketCdnPolicyBypassCacheOnRequestHeader>?>? bypassCacheOnRequestHeaders, Input<BackendBucketCdnPolicyCacheKeyPolicy?>? cacheKeyPolicy, Input<String?>? cacheMode, Input<int?>? clientTtl, Input<int?>? defaultTtl, Input<int?>? maxTtl, Input<bool?>? negativeCaching, Input<List<BackendBucketCdnPolicyNegativeCachingPolicy>?>? negativeCachingPolicies, Input<bool?>? requestCoalescing, Input<int?>? serveWhileStale, Input<int?>? signedUrlCacheMaxAgeSec})
Creates a new BackendBucketCdnPolicy. bypassCacheOnRequestHeaders Bypass the cache when the specified request headers are matched - e.g. Pragma or Authorization headers. Up to 5 headers can be specified. The cache is bypassed for all cdnPolicy.cacheMode settings. cacheKeyPolicy The CacheKeyPolicy for this CdnPolicy. cacheMode Specifies the cache setting for all responses from this backend. clientTtl Specifies the maximum allowed TTL for cached content served by this origin. When the defaultTtl Specifies the default TTL for cached content served by this origin for responses maxTtl Specifies the maximum allowed TTL for cached content served by this origin. When the negativeCaching Negative caching allows per-status code TTLs to be set, in order to apply fine-grained caching for common errors or redirects. negativeCachingPolicies Sets a cache TTL for the specified HTTP status code. negativeCaching must be enabled to configure negativeCachingPolicy. requestCoalescing If true then Cloud CDN will combine multiple concurrent cache fill requests into a small number of requests to the origin. serveWhileStale Serve existing content from the cache (if available) when revalidating content with the origin, or when an error is encountered when refreshing the cache. signedUrlCacheMaxAgeSec Maximum number of seconds the response to a signed URL request will
const
BackendBucketCdnPolicy.fromMap(Map<String, dynamic> map)
factory

Properties

bypassCacheOnRequestHeaders → Input<List<BackendBucketCdnPolicyBypassCacheOnRequestHeader>?>?
Bypass the cache when the specified request headers are matched - e.g. Pragma or Authorization headers. Up to 5 headers can be specified. The cache is bypassed for all cdnPolicy.cacheMode settings. Structure is documented below.
final
cacheKeyPolicy → Input<BackendBucketCdnPolicyCacheKeyPolicy?>?
The CacheKeyPolicy for this CdnPolicy. Structure is documented below.
final
cacheMode → Input<String?>?
Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS, FORCE_CACHE_ALL and CACHE_ALL_STATIC Possible values are: USE_ORIGIN_HEADERS, FORCE_CACHE_ALL, CACHE_ALL_STATIC.
final
clientTtl → Input<int?>?
Specifies the maximum allowed TTL for cached content served by this origin. When the cacheMode is set to "USE_ORIGIN_HEADERS", you must omit this field.
final
defaultTtl → Input<int?>?
Specifies the default TTL for cached content served by this origin for responses that do not have an existing valid TTL (max-age or s-max-age). When the cacheMode is set to "USE_ORIGIN_HEADERS", you must omit this field.
final
hashCode → int
The hash code for this object.
no setterinherited
maxTtl → Input<int?>?
Specifies the maximum allowed TTL for cached content served by this origin. When the cacheMode is set to "USE_ORIGIN_HEADERS", you must omit this field.
final
negativeCaching → Input<bool?>?
Negative caching allows per-status code TTLs to be set, in order to apply fine-grained caching for common errors or redirects.
final
negativeCachingPolicies → Input<List<BackendBucketCdnPolicyNegativeCachingPolicy>?>?
Sets a cache TTL for the specified HTTP status code. negativeCaching must be enabled to configure negativeCachingPolicy. Omitting the policy and leaving negativeCaching enabled will use Cloud CDN's default cache TTLs. Structure is documented below.
final
requestCoalescing → Input<bool?>?
If true then Cloud CDN will combine multiple concurrent cache fill requests into a small number of requests to the origin.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
serveWhileStale → Input<int?>?
Serve existing content from the cache (if available) when revalidating content with the origin, or when an error is encountered when refreshing the cache.
final
signedUrlCacheMaxAgeSec → Input<int?>?
Maximum number of seconds the response to a signed URL request will be considered fresh. After this time period, the response will be revalidated before being served. When serving responses to signed URL requests, Cloud CDN will internally behave as though all responses from this backend had a "Cache-Control: public, max-age=TTL" header, regardless of any existing Cache-Control header. The actual headers served in responses will not be altered.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited