| Version: v2023-09-20 | Includes use: No | 
|---|
Behavior name: Adaptive Acceleration
Adaptive Acceleration uses HTTP/2 server push functionality with Ion properties to pre-position content and improve the performance of HTML page loading based on real user monitoring (RUM) timing data. It also helps browsers to preconnect to content that’s likely needed for upcoming requests. To use this behavior, make sure you enable the http2 behavior. Use the Adaptive Acceleration API to report on the set of assets this feature optimizes.
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" "adaptive_acceleration" {
  rules_v2023_09_20 {
    name     = "Adaptive Acceleration"
    comments = "Control the settings related to the fallback action when a partner gets errors and can't modify the requested media object."
    behavior {
      adaptive_acceleration {
        enable_push               = true
        preload_enable            = true
        enable_preconnect         = true
        ab_logic                  = "DISABLED"
        enable_ro                 = false
        source                    = "mPulse"
        enable_for_noncacheable   = false
        enable_brotli_compression = true
      }
    }
  }
}
"behaviors": [
  {
    "name": "adaptiveAcceleration",
    "options": {
      "enablePush": true,
      "preloadEnable": true,
      "enablePreconnect": true,
      "abLogic": "DISABLED",
      "enableRo": false,
      "source": "mPulse",
      "enableForNoncacheable": false,
      "enableBrotliCompression": true
    }
  }
]
Options
| Option | Description | 
|---|---|
| source | The source Adaptive Acceleration uses to gather the real user monitoring timing data, either  mPulseorrealUserMonitoring. The recommendedmPulseoption supports all optimizations and requires them_pulsebehavior added by default to new Ion properties. The classicrealUserMonitoringmethod has been deprecated. If you set it as the data source, make sure you use it with thereal_user_monitoringbehavior. | 
| enable_push | Recognizes resources like JavaScript, CSS, and images  based on gathered timing data and sends these resources to a browser as it's waiting for a response to the initial request for your website or app. See Automatic Server Push for more information.
         | 
| enable_preconnect | Allows browsers to anticipate what connections your site needs, and establishes those connections ahead of time. See Automatic Preconnect for more information.
         | 
| preload_enable | Allows browsers to preload necessary fonts before they fetch and process other resources. See Automatic Font Preload for more information.
         | 
| ab_logic | Specifies whether to use Adaptive Acceleration in an A/B testing environment. To include Adaptive Acceleration data in your A/B testing, specify the mode you want to apply. Otherwise,  DISABLEDby default. See Add A/B testing to A2 for details. Value is one of:
 | 
| cookie_name | This specifies the name of the cookie file used for redirecting the requests in the A/B testing environment.
         | 
| enable_ro | Enables the Resource Optimizer, which automates the compression and delivery of your  .css,.jsand, and.svgcontent using a combination of Brotli and Zopfli compressions. The compression is performed offline, during a time to live that the feature automatically sets. See theresource_optimizerandresource_optimizer_extended_compatibilitybehaviors for more details. | 
| enable_brotli_compression | Applies Brotli compression, converting your origin content to cache on edge servers.
         | 
| enable_for_noncacheable | Applies Brotli compression to non-cacheable content.
         | 
