| Version: v2023-09-20 | 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_v2023_09_20 {
    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  Expiresheader. Value is one of:
 | 
| ttl | Sets the duration of the cache. Setting the value to  0equates to ano-cacheheader 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: privateheader to prevent objects from being cached in a shared caching proxy. | 
