Forum Discussion
Carol_Williams_
Nimbostratus
Oct 28, 2009help optimize iRule
Could someone please help me. I have a redirect iRule that is slow. I need to make sure all images are 1 not going through my httpclass profile and 2 if they are coming from a list of BOTs going to ...
hoolio
Cirrostratus
Oct 28, 2009Sorry, I had the indentations on your iRule wrong. The HTTP::class disable command is only being run for image requests:
when HTTP_REQUEST {
if { [matchclass [HTTP::uri] ends_with ::images] } {
if { [matchclass [HTTP::header User-Agent] contains ::robots] } {
pool MyBotPool
} else {
pool MyImagePool
}
HTTP::class disable
}
}
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects