Forum Discussion
thagmann_128177
Nimbostratus
Mar 25, 2005Compression iRules - GZIP vs. Deflate Preference
F5 DevCentral,
Hi, our understanding is that when doing a Profile that utilizes Compression that BIGIP will prefer the Deflate vs. GZIP method. We would like to have a rule that utiliz...
bl0ndie_127134
Mar 27, 2005Historic F5 Account
You are very close. The header 'exist' command does not check the header value, it works only on the name. Lets scan the value for 'gzip' and convert it if one found.
rule gzip {
when HTTP_REQUEST {
if {[string first "gzip" [HTTP::header "Accept-Encoding"]] != -1} {
HTTP::header replace "Accept-Encoding" "gzip"
}
}
}
You may want to play around with adding back the 'event disable' command but I suspect that you might have to leave it out for keep-alive connections.
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
