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...
thagmann_128177
Nimbostratus
Mar 27, 2005So based on all of the changes we talked about, I just want to double-check that I now have the right rule rule that removes the original rule + does the GZIP check in the ACCEPT-ENCODING Header.
I removed the original rule and I am assuming that the "exist" function will scan the entire header and thus instead of matching "Accept-Encoding" we can just match on "gzip". If there's no GZIP then no need to rewrite anything.
Would this rule incorporate everything we talked about so far?
=================================================================
rule gzip2 {
when HTTP_REQUEST {
if {[HTTP::header exist "gzip"]} {
HTTP::header replace "Accept-Encoding" "gzip"
event disable
}
}
}
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
