Emre_27149
May 03, 2011Nimbostratus
disable ram cache while when get http error codes
Hi All,}
I have the below irule code but I also want to disable the ram cache feature when a backend server returned a http error codes (404, 303... ) to clients.So how can I need to update the rule to accomplish my goal.?
Thank you,
rule cache_rule3
{
when HTTP_REQUEST {
if { [ class
match [HTTP::path] starts_with cache_obj] } {
CACHE::enable
log local0.
"Caching [HTTP::path]"
} else {
log local0.
"NON Caching [HTTP::path]"
CACHE::disable
log local0.
"Non Caching [HTTP::path]"
}