downstream_cache
Version: v2025-01-13 | Includes use: Yes |
---|
Behavior name: Downstream Cacheability
Specify the caching instructions the edge server sends to the end user's client or client proxies. By default, the cache's duration is whichever is less: the remaining lifetime of the edge cache, or what the origin's header specifies. If the origin is set to no-store
or bypass-cache
edge servers send cache-busting headers downstream to prevent downstream caching.
data "akamai_property_rules_builder" "downstream_cache" {
rules_v2025_02_18 {
name = "Downstream Cacheability"
comments = "Specify the caching instructions the edge server sends to an end user's client or client proxies."
behavior {
downstream_cache {
behavior = "ALLOW"
allow_behavior = "LESSER"
send_headers = "CACHE_CONTROL_AND_EXPIRES"
send_private = false
}
}
}
}
"behaviors": [
{
"name": "downstreamCache",
"options": {
"behavior": "ALLOW",
"allowBehavior": "LESSER",
"sendHeaders": "CACHE_CONTROL_AND_EXPIRES",
"sendPrivate": false
}
}
]
Options
Option | Description |
---|---|
behavior |
Specify the caching instructions the edge server sends to the end user's client. Value is one of:
|
allow_behavior |
Specify how the edge server calculates the downstream cache by setting the value of the
Expires header. Value is one of:
|
ttl |
Sets the duration of the cache. Setting the value to
0 equates to a no-cache header that forces revalidation.
|
send_headers |
Specifies the HTTP headers to include in the response to the client. Value is one of:
|
send_private |
Adds a
Cache-Control: private header to prevent objects from being cached in a shared caching proxy.
|
Updated 43 minutes ago