negativeCaching

@JvmName(name = "ymjpagmtwhumtknq")
suspend fun negativeCaching(value: Output<Boolean>)
@JvmName(name = "mpwdysidliorgpsq")
suspend fun negativeCaching(value: Boolean?)

Parameters

value

Negative caching allows per-status code TTLs to be set, in order to apply fine-grained caching for common errors or redirects. This can reduce the load on your origin and improve end-user experience by reducing response latency. By default, the CDNPolicy will apply the following default TTLs to these status codes:

  • HTTP 300 (Multiple Choice), 301, 308 (Permanent Redirects): 10m

  • HTTP 404 (Not Found), 410 (Gone), 451 (Unavailable For Legal Reasons): 120s

  • HTTP 405 (Method Not Found), 414 (URI Too Long), 501 (Not Implemented): 60s These defaults can be overridden in negativeCachingPolicy