Command Line Interface Reference Guide > The SLB Configuration Menu
/cfg/slb/accel/caching/cachepol <policy ID (alphanumeric)>
Caching Policy Menu
Use this menu to configure a caching policy. The caching policy defines the caching behavior required for the virtual service to which it is associated. A single caching policy can be associated to multiple virtual services if they share the same caching configuration. The caching policy is identified by an alphanumeric ID.
Note: The policy id <alphanumeric> command requires 0-32 alphanumeric characters which sets the identifier for the optimization policy.
 
[Caching Policy wpo1 Menu]
name - Set policy name
expire - Set maximum expiration time
minsize - Set minimum object size to be stored
maxsize - Set maximum object size to be stored
urllist - Set cache url exceptions rule-list
store - Set behavior for storing new object in cache
serve - Set behavior when serving client with object
query - Set inclusion of query parameter
browser - Enable/Disable optimize browser cache
ena - Enable policy
dis - Disable policy
del - Delete policy
cur - Display current policy configuration
 
Caching Policy Menu 
Command Syntax and Usage
name
 
Sets the descriptive name for the caching optimization policy.
Values: 0–32 alphanumeric characters
Default: none
expire
 
The maximum expiration time, in seconds, for serving an object from cache.
*If the server header expiration time is longer than the maximum expiration time, the maximum expiration time value overrides the server header expiration time.
*If the server header or configuration using the cache URL rule list expiration time is shorter than the maximum expiration time, the object is served according to either the header or the rule list configuration (see /cfg/slb/accel/caching/cachepol <policy ID (alphanumeric)> Caching Policy Menu).
Note: Alteon updates the client browser with the expiration time only if browser caching is enabled with the browser command, as described in this table.
Values: 60 – 43,200,000 seconds (~500 days)
Default: 86400 (24 hours)
minsize
 
The minimum object size to be stored, in bytes, in cache.
Values: 1–65536
Default: 1024 (1 KB)
Radware recommends that you reduce the minimum cache object size to 1 byte when using .css or JavaScript inlining, as described in /cfg/slb/accel/caching/cachepol <policy ID (alphanumeric)> Caching Policy Menu.
maxsize
 
The maximum object size to be stored, in bytes, in cache.
Values: 1 – 512,000,000
Default: 1048576 (1 MB)
store
 
An optional setting that defines caching behavior for storing new objects in cache.
Values:
*srvrhdr — Respect the cache directive specified by the Web application using HTTP headers. Caching is performed according to caching headers sent by the back-end servers.
*cacheall — Cache all content regardless of specified cache directives. For example, the Private header is not respected when cacheall is used.
Note: Radware recommends that you use the URL exceptions rule list as a blocklist if you choose to cache all content, specifying what should not be cached.
Default: srvrhdr
serve
 
Defines the cache behavior when serving clients with objects, where you specify Alteon’s behavior when a cached object is requested from it.
The prompt displays the current behavior for serving clients with an object. Enter the new behavior for serving clients with an object.
Values:
*clnthdr — Serving is performed according to the client’s requests for caching headers, which determines if the cached content should be accepted.
*refresh — All of the client’s headers are ignored except for headers indicating a browser Refresh operation.
*cache — Clients are served from cache with any object available in cache, regardless of the cache headers they send in the requests.
Default: clnthdr
query
 
Determines if the query parameter added to an object’s URL should be considered when storing objects in a cache.
Ignoring query parameters from the object name implies that the object may be served to various requests that include different query parameters. This generalizes object names and is useful when parameters do not affect object content.
Considering query parameters in the object name implies the object is stored with the full parameter string, and are served only if requested with the same parameters. This is useful when the same object may be different when requested with different parameters.
Values: consider, ignore
Default: ignore
browser
 
Browser caching can be optimized by updating the cache control directives on every cache-served object. The object headers are updated to reflect the future time length that objects can be cached by the browser according to the Alteon cache time (either from server headers or the cache URL exceptions rule list. For more information, see /cfg/slb/accel/caching/urllist <rule-list id>/rule <rule number> Cache URL Exceptions Rule-List Rule Menu).
Values: disabled, enabled
Default: enabled
ena <policy id>
 
Enables a caching policy.
dis <policy id>
 
Disables a caching policy. You can disable a caching policy even when it is associated with a virtual service.
del <policy id>
 
Deletes a caching policy.
cur
 
Displays the current caching configuration, including the list of defined domains and the services with which a caching policy is associated.