Forum Discussion
Michael_Yates
Nov 14, 2011Nimbostratus
Hi jucao,
As Hoolio pointed out, if you are after efficiency then you can go with a switch statement over a Data Group. Some (myself included) view management of a Data Group easier to keep track of (and you can make modifications without having to alter your iRule).
You can so it with something like:
when HTTP_REQUEST {
if { [class match [string tolower [HTTP::uri]] ends_with image_types ] } {
pool image_server_pool
}
else {
pool content_server_pool
}
}