Forum Discussion
Henrik_Janhagen
Sep 16, 2011Nimbostratus
HTTP::uri rewrites in combination with RAM cache
Hello, I have bit of a problem with HTTP::uri rewrites in combination with RAM cache.
My problem is that the application I have running on my VIP is called with uri's like this:
...
Henrik_Janhagen
Sep 19, 2011Nimbostratus
Hello Michael and thanks for your reply!
But if I do that won't I reply to ALL requests for '.../service?' with the same cache?
While
.../service?unique=1&lang=en&market=1 and .../service?unique=2&lang=en&market=1 should get the same cache
.../service?unique=1&lang=en&market=1 and .../service?unique=1&lang=da&market=2 should not see the same cache (since here the market and language have changed.
I tried this:
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] contains "unique" } {
regsub -nocase {unique=.*&} [HTTP::uri] "" uri
CACHE::uri $uri
HTTP::uri $uri
}
}
But that doesn't seem to work. (In fact it seems to kill the cache completely since then all requests to .../service? then hit the realservers)
Best Regards
Henrik Janhagen
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