prefetch
Version: v2025-01-13 | Includes use: Yes |
---|
Behavior name: Prefetch Objects
Instructs edge servers to retrieve content linked from requested pages as they load, rather than waiting for separate requests for the linked content. This behavior applies depending on the rule's set of matching conditions. Use in conjunction with the prefetchable
behavior, which specifies the set of objects to prefetch.
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" "prefetch" {
rules_v2025_02_18 {
name = "Prefetch Objects"
comments = "Gets content linked from requested pages as they load."
behavior {
prefetch {
enabled = true
}
}
}
}
"behaviors": [
{
"name": "prefetch",
"options": {
"enabled": true
}
}
]
Options
Option | Description |
---|---|
enabled |
Applies prefetching behavior when enabled.
|
Updated 1 day ago