π This article provides information on how to set the custom cache behaviors to optimize your cache refresh in SpeedWorkers. SpeedWorkers is part of Botify's Activation Suite, available as an option with a Botify Pro or Enterprise plan.
Overview
The Custom Cache Behavior settings in SpeedWorkers override the default cache behavior settings for the URLs within the scope that you define. Defining a custom cache behavior includes the following steps:
To define a custom behavior:
If settings are not in Edit mode, refer to the Defining SpeedWorkers Settings article to enable editing.
Click the Create custom behavior link in the Custom behavior block, or hover over an existing rule and click the pencil icon to edit.
Define the scope, and then click Next.
Set the custom behavior rules, following Steps 1 - 7 in the Defining Default Rules section, and then click Next.
Optionally, add advanced rules.
Optionally, choose to serve Markdown to AI bots, tthen click Save.
π The settings for rules in custom behaviors are inherited from the default behavior rules. Click the pencil icon next to the field to change the value.
Defining the scope
The scope determines which pages will be impacted by the custom behavior.
To define the custom behavior scope:
Provide a title and, optionally, a description to identify the custom behavior.
From the first dropdown list, select the element by which you want to define the scope (e.g., URL).
Select the operator from the second dropdown list that determines the relationship between the element you selected above and the string to be matched (e.g., contains).
In the text field, identify the string to be matched (e.g., "/product/").
Optionally, click the Add a Condition link to add another condition to be matched for this custom behavior.
Reordering custom behaviors
The order in which Custom Behaviors appear in the list of rules is important. If a URL matches more than one behavior, the first matching behavior in the list will be applied, and any subsequent matching behaviors will not be executed. For this reason, you may need to change the order in which the behaviors are displayed.
To reorder custom behaviors:
In the Custom Behaviors section of the Cache Behaviors settings, click the up arrow in the behavior block to move the behavior one step higher in the list or click the down arrow to move the rule one step lower in the list.
Repeat until the behavior is at the desired location in the list.
See also:

