cacheability

Version: v2023-05-30Includes use: Yes

Criterion name: Response Cacheability

Matches the current cache state.

Note: Any NO_STORE or BYPASS_CACHE HTTP headers set on the origin's content overrides properties' caching instructions, in which case this criteria does not apply.

Default criterion

These samples reflect the criterion's default settings. You can use these as is in your configurations or make adjustments based on the criterion's available options.

data "akamai_property_rules_builder" "cacheability" {
  rules_v2023_05_30 {
    name     = "Response Cacheability"
    comments = "Matches the current cache state."
    criterion {
      cacheability {
        match_operator = "IS"
        value = "CACHEABLE"
      }
    }
  }
}
"criterion": [
  {
    "name": "cacheability",
    "options": {
      "matchOperator": "IS",
      "value": "CACHEABLE"
    }
  }
]

Options

Option Description
percentage
Specifies the match's logic. Value is one of:
  • IS. Cache state matches the value.
  • IS_NOT. Cache state does not match the value.
percentage
Specifies the match's logic. Value is one of:
  • NO_STORE. Content cache is disabled.
  • BYPASS_CACHE. Content cache is ignored.
  • CACHEABLE. Content cache is enabled.