View a markdown version of this page

CacheConfig - AWS Amplify Hosting

CacheConfig

Describes the cache configuration for an Amplify Hosting app.

For more information about how Amplify Hosting applies an optimal cache configuration for your app based on the type of content that is being served, see Managing cache configuration in the Amplify Hosting User Guide.

Contents

type

The type of cache configuration to use for an Amplify Hosting app.

The AMPLIFY_MANAGED cache configuration automatically applies an optimized cache configuration for your app based on its platform, routing rules, and rewrite rules.

The AMPLIFY_MANAGED_NO_COOKIES cache configuration type is the same as AMPLIFY_MANAGED, except that it excludes all cookies from the cache key. This is the default setting.

Type: String

Valid Values: AMPLIFY_MANAGED | AMPLIFY_MANAGED_NO_COOKIES

Required: Yes

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: