Forum Discussion
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!