don'tcacheifile
1 TopicI'm trying to create an irule that will quickly redirect traffic that meets a URI and IP address list and send them to an ifile.
The rule works but it is slow to push traffic to the page about 45 seconds and some browsers are caching the page and not coming back to the original page when rule is removed. What is the best way interrupt sessions to launch the page and also keep browsers from caching my ifile so they come back with just a refresh? I have two data groups. one has a list of internal IP addresses and one has a list of URLs that I want to re-direct traffic if they match. This kind of works but it could use some help with controlling the cache. Thank in advance! when HTTP_REQUEST { set net_code [class match -value -- [IP::client_addr] equals internal_network_dg] set app_path [class match -value -- [string tolower [HTTP::path]] starts_with maintenance-page-path-dg] if {$app_path eq "m" and $net_code ne "r"} { HTTP::respond 302 content [ifile get HighTraffic.html] "Content-Type" "text/html" { HTTP::header replace "Cache-Control" "max-age=10,post-check=50,pre-check=200" } } }522Views0likes6Comments