ltm rule command CACHE enable
iRule(1) BIG-IP TMSH Manual iRule(1)
CACHE::enable
Forces the document to be cached.
SYNOPSIS
CACHE::enable
DESCRIPTION
Forces the document to be cached. You can also use this command to
cache non-GET requests.
Note: Should be used with extreme caution, as it allows caching of
content marked private by server.
CACHE::enable
* Forces the document to be cached.
RETURN VALUE
VALID DURING
HTTP_REQUEST, HTTP_RESPONSE
EXAMPLES
when HTTP_REQUEST {
if { [HTTP::uri] contains "images" } {
CACHE::enable
}
}
HINTS
SEE ALSO
CHANGE LOG
@BIGIP-9.0.3 --First introduced the command.
BIG-IP 2017-01-31 iRule(1)