Forum Discussion
hooleylist
Dec 12, 2007Cirrostratus
I hadn't considered LTM caching with that rule. I haven't worked with caching events in iRules. I would assume you wouldn't want to limit requests which would be answered from cache as there isn't a resource hit on the web servers in the pool. If that's the case, you'd need to figure out if the request was going to be answered from cache and not increment the request counter or decrement it on the cache response event. Reading over the wiki pages (Click here and Click here), it isn't clear to me what triggers them.
Can anyone shed light on how the HTTP_REQUEST/HTTP_RESPONSE and CACHE_REQUEST/CACHE_RESPONSE events work together when you have caching enabled on the HTTP profile? I would assume the HTTP_REQUEST event is triggered first. Could you determine in the HTTP_REQUEST event whether the request will be answered from cache? If not, I would think you'd want to increment the request counter in HTTP_RESPONSE and decrement the counter in both CACHE_RESPONSE and HTTP_RESPONSE (assuming only one would possibly be called per request).
Aaron