Forum Discussion
Phil_53695
Nimbostratus
Aug 18, 2011Cache hits show 0 on irule when looking at ltm log
Hi,
Below is an irule that I am trying to debug to see if indeed the URI(s) file types get cached and nothing else.
From viewing the ltm log, I see: : 0 cache hits /Public/Lega...
hoolio
Cirrostratus
Aug 19, 2011Hi Phil,
A switch statement should be a bit more efficient and simpler to modify:
when HTTP_REQUEST {
switch -glob [HTTP::path] {
".swf" -
".js" -
".css" -
".png" -
".jpeg" -
".pspg" -
".gif" {
CACHE::enable
log local0. "Caching [HTTP::uri]"
}
default {
CACHE::disable
}
}
}
when CACHE_REQUEST {
log local0. "[CACHE::hits] cache hits [HTTP::uri]"
}
Aaron
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects