Forum Discussion
Phil_53695
Aug 10, 2011Nimbostratus
What is most efficient way to setup http profile with ram cache
Having not used the ram cache feature at my previous position. I want to setup a simple ram cache to take some of the load off the web serve for images and some static items. I've search around the f...
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]" }
}
}
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