Forum Discussion
pdh
Nimbostratus
May 13, 2014Conditional caching using an iRule
Hi,
I am trying to conditionally disable ramcache from within an iRule, based on an HTTP class, but it is not behaving as I would expect. I am hoping someone here might be able to explain why.
Ve...
JRahm
Admin
May 13, 2014Not familiar with that solution, but curious why if the only condition is negative and then disabling why the default behavior wouldn't be disabled and then you enable the cache for your specific condition. If you rework the iRule to enable the cache when the static content is detected, do you see a difference?
when HTTP_CLASS_SELECTED {
CACHE::disable
if { [HTTP::class] eq "/custname/custname_test_web_http_static" } {
CACHE::enable
}
}
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
