instant
- Property Manager name: Akamai Instant (Prefetching)
- Behavior version: The
v2024-10-21
rule format supports theinstant
behavior v1.1. - Rule format status: GA, stable
- Access: Read/Write
- Allowed in includes: Yes
The Instant feature allows you to prefetch content to the edge cache by adding link relation attributes to markup. For example:
xml
<a href="page2.html" rel="Akamai-prefetch">Page 2</a>
Default link relation values are prefetch
and Akamai-prefetch
. Applies only to HTML elements that may specify an external file: <a>
, <base>
, <img>
, <script>
, <input>
, <link>
, <table>
, <td>
, or <th>
. (For the latter three, some legacy browsers support a nonstandard background
image attribute.)
This behavior provides an alternative to the prefetch
and prefetchable
behaviors, which allow you to configure more general prefetching behavior outside of markup.
Option | Type | Description | Requires | |
---|---|---|---|---|
prefetch_cacheable | boolean | When enabled, applies prefetching only to objects already set to be cacheable, for example using the | {"displayType":"boolean","tag":"input","type":"checkbox"} | |
prefetch_no_store | boolean | Allows otherwise non-cacheable | {"displayType":"boolean","tag":"input","type":"checkbox"} | |
prefetch_no_storeExtensions | string array | Specifies a set of file extensions for which the | prefetch_no_store is true | {"displayType":"string array","tag":"input","todo":true} {"if":{"attribute":"prefetchNoStore","op":"eq","value":true}} |
prefetch_html | boolean | Allows edge servers to prefetch additional HTML pages while pages that link to them are being delivered. This only applies to links from | prefetch_cacheable is true OR prefetch_no_store is true | {"displayType":"boolean","tag":"input","type":"checkbox"} {"if":{"op":"or","params":[{"attribute":"prefetchCacheable","op":"eq","value":true},{"attribute":"prefetchNoStore","op":"eq","value":true}]}} |
custom_link_relations | string array | Specify link relation values that activate the prefetching behavior. For example, specifying | prefetch_html is true | {"displayType":"string array","tag":"input","todo":true} {"if":{"attribute":"prefetchHtml","op":"eq","value":true}} |
Updated 17 days ago