return_cache_status
| Version: v2025-07-07 | Includes use: Yes | 
|---|
Behavior name: Return Cache Status
Generates a response header with information about cache status.
Note: Status information returned is for a child or child and parent depending on how you manage traffic.
| Status | Description | 
|---|---|
| Hit | An object was retrieved from Akamai's cache. | 
| Miss | An object was not found in Akamai's cache. | 
| RefreshHit | An object was found in Akamai's cache but was stale. An If-Modified-Sincerequest was made to your origin and received a304 Not Modifiedresponse code. | 
| HitStale | An object was found in Akamai's cache but was stale. A request to your origin did not return an updated object, so the cache served the stale object to the client. | 
| Constructed | Directly specified the response to the client. | 
| Redirect | Redirected the client to a designated location. | 
| Error | An error occurred. Review the error message for more information. | 
Default behavior
These samples reflect the behavior's default settings. You can use these as is in your configurations or make adjustments based on the behavior's available options.
data "akamai_property_rules_builder" "return_cache_status" {
  rules_v2025_07_07 {
    name     = "Return Cache Status"
    comments = "Generates a response header with information about cache status."
    behavior {
      return_cache_status {
        response_header_name = "Akamai-Cache-Status"
      }
    }
  }
}
"behaviors": [
  {
    "name": "returnCacheStatus",
    "options": {
      "responseHeadername": "Akamai-Cache-Status"
    }
  }
]
Options
| Option | Description | 
|---|---|
| response_header_name | Specifies the name of the HTTP header in which to report the cache status value.
         | 
Updated 3 months ago
