CacheBehaviorPerPath class

Describes the per-path cache behavior of an Amazon Lightsail content delivery network (CDN) distribution.

A per-path cache behavior is used to override, or add an exception to, the default cache behavior of a distribution. For example, if the cacheBehavior is set to cache, then a per-path cache behavior can be used to specify a directory, file, or file type that your distribution will cache. Alternately, if the distribution's cacheBehavior is dont-cache, then a per-path cache behavior can be used to specify a directory, file, or file type that your distribution will not cache.

if the cacheBehavior's behavior is set to 'cache', then

Constructors

CacheBehaviorPerPath({BehaviorEnum? behavior, String? path})
CacheBehaviorPerPath.fromJson(Map<String, dynamic> json)
factory

Properties

behavior BehaviorEnum?
The cache behavior for the specified path.
final
hashCode int
The hash code for this object.
no setterinherited
path String?
The path to a directory or file to cached, or not cache. Use an asterisk symbol to specify wildcard directories (path/to/assets/), and file types (.html, *jpg, *js). Directories and file paths are case-sensitive.
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