negativeCachingPolicy

@JvmName(name = "ufilbiwvclppivul")
suspend fun negativeCachingPolicy(value: Output<Map<String, String>>)
@JvmName(name = "tuveibvfcopchxit")
suspend fun negativeCachingPolicy(value: Map<String, String>?)

Parameters

value

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 the default TTLs for each status code, defined in negativeCaching.

  • TTLs must be >= 0 (where 0 is "always revalidate") and <= 86400s (1 day) Note that when specifying an explicit negativeCachingPolicy, you should take care to specify a cache TTL for all response codes that you wish to cache. The CDNPolicy will not apply any default negative caching when a policy exists.


@JvmName(name = "pqjlgikfmmfvhrwf")
fun negativeCachingPolicy(vararg values: Pair<String, String>)

Parameters

values

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 the default TTLs for each status code, defined in negativeCaching.

  • TTLs must be >= 0 (where 0 is "always revalidate") and <= 86400s (1 day) Note that when specifying an explicit negativeCachingPolicy, you should take care to specify a cache TTL for all response codes that you wish to cache. The CDNPolicy will not apply any default negative caching when a policy exists.