persistent_​connection

Version: v2025-01-13Includes use: Yes

Behavior name: Persistent Connections: Edge to Origin

This behavior enables more efficient persistent connections from origin to edge server to client. Compare with the persistent_client_connection behavior, which customizes persistent connections from edge to client. Contact Akamai Professional Services for help configuring either.

Warning: Disabling this behavior drains browser resources. Leaving connections open also makes them vulnerable to attack.

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" "persistent_connection" {
  rules_v2025_02_18 {
    name     = "Persistent Connections: Edge to Origin"
    comments = "Enables more efficient persistent connections from origin to edge server to client."
    behavior {
      persistent_connection {
        enabled = true
        timeout = "5m"
      }
    }
  }
}
"behaviors": [
  {
    "name": "persistentConnection",
    "options": {
      "enabled": true,
      "timeout": "5m"
    }
  }
]

Options

Option Description
enabled
Enables persistent connections.
timeout
Specifies the timeout period after which edge server closes a persistent connection in minutes. Default is five minutes.