Command Line Interface Reference Guide > The SLB Configuration Menu
/cfg/slb/accel/caching/urllist <rule-list id>/rule <rule number>
Cache URL Exceptions Rule-List Rule Menu
Caching optimization rules are based on an object’s URL (file/folder). A rule can be added, removed, or copied. The maximum number of rules in a rule list is 512.
The rules are evaluated according to their priority, with the lowest number getting evaluated first. Once a rule is matched and acted upon, the remaining rules in the list are not evaluated for that object. Rules display in numerical order.
At the prompt enter the rule number to determine its priority:
 
>> Cache URL Rule-List 4# rule
Enter Cache URL Exceptions rule number (1-51200):
Radware recommends that you use numbers such as 10 or 20 for easier future editing.
A menu similar to the following displays:
 
[Rule-list 1 Rule 1 Menu]
name - Set rule name
domainm - Set domain matching method
domain - Set domain to be matched by this rule
urlm - Set URL matching method
url - Set URL to be matched by this rule
expire - Set maximum expiration time
cache - Enable/Disable caching
copy - Copy rule
ena - Enable rule
dis - Disable rule
del - Delete rule
cur - Display current rule configuration
 
Rule-List 1 Rule 1 Menu 
Command Syntax and Usage
name
 
The name of the rule that displays in the rule list.
Values: 0 – 31 characters
domainm
 
Rules can be limited to a specific virtual domain or match any domain. This parameter determines how domain matching should be evaluated.
Note: Simple wildcards, such as question marks and asterisks are not considered regex and will not result in the desired behavior. The regex match for the simple wildcard asterisk (*) is dot-asterisk (.*)
Values: any, regex, text
Default: any
domain
 
Optionally defines the domain matching configuration (virtual host) for which this rule applies. Use this parameter only when domain matching method is not set to any.
Example: company.com
urlm
 
Determines how URL matching is evaluated.
Note: Simple wildcards, such as question marks and asterisks are not considered regex and will not result in the desired behavior. The regex match for the simple wildcard asterisk (*) is dot-asterisk (.*)
Values: any, regex, text
Default: any
url
 
Determines the URL of the specific object (file/folder) to be matched by this rule. This parameter is used only when the URL matching method is not set to any. The URL can be full or partial according to the level of granularity required by the configuration.
Example: /Radware recommends/user/documents
expire
 
The expiration time is part of the rule’s action. This parameter defines the maximum time, in seconds, for a cache object to remain in cache.
Note: The expiration time is functional only if caching is set to enabled.
If you set this value to 0, the cache time is set according to the minimum time from the server header (Expires or Max-Age headers) and the cache policy Max-time-to-cache parameter. This lets you create rules that force caching without affecting the time set by the servers. This is useful when you create a general rule for No-Cache and want to create an exception within it.
Values: 0–43,200,400 seconds
Default: 86400
cache
 
Enables or disables caching and further processing as the rule action.
*enabled — The matched response is cached and processed for web optimization, even though according to the RFC it should not be cached (none of the Cache Policy settings apply to objects cached via the Exception Rule).
*disabled — The matched response is neither cached nor processed for web optimization.
Default: disabled
copy
 
Copies a rule to another rule number in the same rule list. This can also change the priority of a rule.
ena
 
When you configure the rule, it is disabled by default. For the rule to be operational, you must first enable and apply it.
dis
 
Disables a rule to make it non-operational.
del
 
Deletes this rule.
cur
 
Displays the current rule configuration.