CharlieMoad_142
Mar 04, 2014Nimbostratus
Bypass caching when a cookie matching a pattern is present
We have created an iRule which should disable caching for any request containing a cookie matching a pattern (starting with SESS). It seems like all the rules we have tried have no effect. When caching is enabled for the pool, requests are always cached. Here is the latest rule we have:
when HTTP_REQUEST {
set c_cookies [HTTP::cookie names]
if {[lsearch -regexp $c_cookies "SESS*"]} {
CACHE::disable
}
}
Any ideas on why this wouldn't be working? Also, I'm curious if F5's respect the HTTP Cache-Control max-age header.