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