CacheSettings class
Describes the cache settings of an Amazon Lightsail content delivery network (CDN) distribution.
These settings apply only to your distribution's cacheBehaviors
(including the defaultCacheBehavior
) that have a
behavior
of cache
.
Constructors
- CacheSettings({String? allowedHTTPMethods, String? cachedHTTPMethods, int? defaultTTL, CookieObject? forwardedCookies, HeaderObject? forwardedHeaders, QueryStringObject? forwardedQueryStrings, int? maximumTTL, int? minimumTTL})
-
CacheSettings.fromJson(Map<
String, dynamic> json) -
factory
Properties
- allowedHTTPMethods → String?
-
The HTTP methods that are processed and forwarded to the distribution's
origin.
final
- cachedHTTPMethods → String?
-
The HTTP method responses that are cached by your distribution.
final
- defaultTTL → int?
-
The default amount of time that objects stay in the distribution's cache
before the distribution forwards another request to the origin to determine
whether the content has been updated.
final
- forwardedCookies → CookieObject?
-
An object that describes the cookies that are forwarded to the origin. Your
content is cached based on the cookies that are forwarded.
final
- forwardedHeaders → HeaderObject?
-
An object that describes the headers that are forwarded to the origin. Your
content is cached based on the headers that are forwarded.
final
- forwardedQueryStrings → QueryStringObject?
-
An object that describes the query strings that are forwarded to the origin.
Your content is cached based on the query strings that are forwarded.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- maximumTTL → int?
-
The maximum amount of time that objects stay in the distribution's cache
before the distribution forwards another request to the origin to determine
whether the object has been updated.
final
- minimumTTL → int?
-
The minimum amount of time that objects stay in the distribution's cache
before the distribution forwards another request to the origin to determine
whether the object has been updated.
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
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited