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...
hoolio
Cirrostratus
May 09, 2007'[string first {?} $myUri 0]' will return an index of the first occurrence of the ? character. You could use that index in string range to get all characters up to that index:
[string range [HTTP::uri] 0 [expr [string first {?} [HTTP::uri] 0] - 1]
Or you could just use HTTP::path to get the path and object (/image/image.jpg for example) without the query string.
Aaron
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