Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
Documentation
data CacheBehavior Source #
Describes the default cache behavior of an Amazon Lightsail content delivery network (CDN) distribution.
See: newCacheBehavior
smart constructor.
CacheBehavior' | |
|
Instances
newCacheBehavior :: CacheBehavior Source #
Create a value of CacheBehavior
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:behavior:CacheBehavior'
, cacheBehavior_behavior
- The cache behavior of the distribution.
The following cache behaviors can be specified:
cache
- This option is best for static sites. When specified, your distribution caches and serves your entire website as static content. This behavior is ideal for websites with static content that doesn't change depending on who views it, or for websites that don't use cookies, headers, or query strings to personalize content.dont-cache
- This option is best for sites that serve a mix of static and dynamic content. When specified, your distribution caches and serve only the content that is specified in the distribution'sCacheBehaviorPerPath
parameter. This behavior is ideal for websites or web applications that use cookies, headers, and query strings to personalize content for individual users.
cacheBehavior_behavior :: Lens' CacheBehavior (Maybe BehaviorEnum) Source #
The cache behavior of the distribution.
The following cache behaviors can be specified:
cache
- This option is best for static sites. When specified, your distribution caches and serves your entire website as static content. This behavior is ideal for websites with static content that doesn't change depending on who views it, or for websites that don't use cookies, headers, or query strings to personalize content.dont-cache
- This option is best for sites that serve a mix of static and dynamic content. When specified, your distribution caches and serve only the content that is specified in the distribution'sCacheBehaviorPerPath
parameter. This behavior is ideal for websites or web applications that use cookies, headers, and query strings to personalize content for individual users.