Forum Discussion
Joseph_Lee_4644
Nimbostratus
Oct 25, 2005Ram Cache
Is it possible to make my Ram Cache "selective" using iRule just like Compression?
- bl0ndie_127134Historic F5 AccountYes there are a few ways of doing this. If you know what resources need to be excluded based on their URI, you can add them to the cache exclude list (no rule required). NOTE: the exclude list accepts regular expressions.
- bl0ndie_127134Historic F5 AccountI think this rule might be what you are looking for.
class images { ".bmp" ".gif" ".jpg" } when HTTP_REQUEST { if { [matchclass [HTTP::uri] ends_with $::images]} { CACHE::enable } else { CACHE::disable } }
- Gordon_Johnston
Nimbostratus
I'm new to RAM Cache as well but as I see it from the docs: - brad_11480
Nimbostratus
I have static content that i serve from pools other than the default for the virtual server. - Rab_101866
Nimbostratus
Hi brad, - hoolio
Cirrostratus
Hi Rab, - Rab_101866
Nimbostratus
Thanks Aaron that looks like it works. - Rab_101866
Nimbostratus
This is what I needed - - hoolio
Cirrostratus
Hi Rab, - hc_andy_35682
Nimbostratus
Just on this issue of the RAM Cache...if I need to disable caching for an entire domain, is it enough to just add the domain to the URI's Exclude List or do I need to add a wildcard masks to the end of it.
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