Forum Discussion
Phil_53695
Aug 10, 2011Nimbostratus
Hi,
Thanks for the reply. I used the standard template as you suggested and then did the irule below which will cache disable anything other than the files I listed.
I am going to see if it works and enabled the logging. Any good tips on testing or gather stats? Thanks again
when HTTP_REQUEST {
switch -glob [ string tolower [HTTP::uri]] {
"text/*javascript" -
"Scripts/*.js" -
"text/*.css" -
"image/*.swf" -
"image/*.gif" -
"image/*.png" -
"image/*.jpg" -
"image/*.jpeg"
{ CACHE::enable
log local0. "Caching [HTTP::uri]" }
else { CACHE::disable
log local0. "Non Caching [HTTP::uri]" }
}
}