Forum Discussion
Darren_Person_2
Nimbostratus
May 07, 2007Image Leeching / Random querystring fix?
Hi All,
We have the RAMCACHE module installed and are seeing a high rate of evictions. After some further investigation, it appears that we have someone linking to our images using a random...
Darren_Person_2
Nimbostratus
May 09, 2007Hi All,
Thank you for the responses. I'm going to try an example of the CacheBusterBuster in hopes that you can help fill in the blanks.
We have requests that come in for static content such as these:
http://site.com/image/image.jpg?12313
http://site.com/image/image.jpg?random=12313
http://site.com/swf/mysef.swf?r=6644
I'd like to be able to just return the object that is already in cache - here is a starting point:
iRule = CacheBusterBuster
when CACHE_REQUEST {
if { [string tolower [HTTP::uri]] contains "?" } {
CACHE::Uri [string first {?} [HTTP::uri] 0]
}
}
Please let me know if this will work or if there is a better way to do this?
Thanks!
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