Forum Discussion
Emre_27149
May 22, 2011Nimbostratus
persistansy and compression
Hi,
I need to your ideas .We tested the bellow irules and it worked.But after get the production some clients complained session persistent and compression.There is a relationship persistency ru...
hooleylist
May 23, 2011Cirrostratus
If you call 'event disable all' it will prevent any further iRule events from being run for the rest of the connection. That would break any further persistence on the connection.
Can you try this instead:
when HTTP_REQUEST {
if { [HTTP::header User-Agent] contains "MSIE 6" }{
log local0. "Header agent [HTTP::header User-Agent] NOT COMPRESSED"
set disable 1
} else {
log local0. "Header agent [HTTP::header User-Agent] COMPRESSED"
set disable 0
}
}
when HTTP_RESPONSE {
Exit this event in this iRule if we're disabling compression for IE6
if {$disable==1}{
COMPRESS::disable
return
}
switch -glob [HTTP::header Content-Type] {
"*png*" -
"*jpg*" -
"*jpeg*" -
"*exe*" -
"*swf*" -
"*flw*" {
log local0. "Header agent [HTTP::header Content-Type] PNG NOT COMPRESSED"
COMPRESS::disable
}
default {
log local0. "Header agent [HTTP::header Content-Type] OTHERS COMPRESSED"
COMPRESS::enable
}
}
}
Aaron
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