Version: v2025-02-18Includes use: Yes

Behavior name: Brotli Support

Accesses Brotli-compressed assets from your origin and caches them on edge servers. This doesn't compress resources within the content delivery network in real time. You need to set up Brotli compression separately on your origin. If a requesting client doesn't support Brotli, edge servers deliver non-Brotli resources.

Note: If you're using Ion and want Akamai to compress your content on edge servers, use adaptive​_acceleration instead.

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" "brotli" {
  rules_v2025_02_18 {
    name     = "Brotli"
    comments = "Accesses Brotli-compressed assets from your origin and caches them on edge servers."
    behavior {
      brotli {
        enabled = true
      }
    }
  }
}
"behaviors": [
  {
    "name": "brotli",
    "options": {
      "enabled": true
    }
  }
]

Options

Option Description
enabled
Fetches Brotli-compressed assets from your origin and caches them on edge servers.