Forum Discussion
roger10dc_46053
Nimbostratus
Oct 08, 2010iRule to exclude certain content type from ram cache
Hi,
I am looking for an iRule to exclude certain content type from being ram cached thus going beyond the uri exclusion list...
Any help would be appreciated.
Jon ...
George_Watkins_
Oct 11, 2010Historic F5 Account
Hi Jon,
You'll need to do something like this:
class bypass_ram_cache_filetypes {
{
"mp3"
"pdf"
"wmv"
}
}
rule bypass_ram_cache_by_filetype {
when HTTP_REQUEST {
if { [class match [HTTP::path] ends_with $::bypass_ram_cache_filetypes] } {
log local0. "RAM Cache bypassed for [HTTP::path]"
CACHE::disable
}
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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