prefetchable
Version: v2025-01-13 | Includes use: Yes |
---|
Behavior name: Prefetchable Objects
Allow matching objects to prefetch into the edge cache as the parent page that links to them loads, rather than waiting for a direct request. This behavior applies depending on the rule's set of matching conditions. Use prefetch
to enable the overall behavior for parent pages that contain links to the object. To apply this behavior, you need to match on a filename
or file_extension
.
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" "prefetchable" {
rules_v2025_02_18 {
name = "Prefetchable Objects"
comments = "Allows matching objects to prefetch into the edge cache as the parent page that links to them loads."
behavior {
prefetchable {
enabled = true
}
}
}
}
"behaviors": [
{
"name": "prefetchable",
"options": {
"enabled": true
}
}
]
Options
Option | Description |
---|---|
enabled |
Allows matching content to prefetch when referenced on a requested parent page.
|
Updated 26 minutes ago