Forum Discussion
Ian_Stewart_390
Nimbostratus
Jan 05, 2005Compress::Enable
Hi Everyone,
I would like to selectively compress HTTP responses from our server to the client browser. Because of the following IE bugs:
For IE 5.5 : http://support.micr...
John_Shin_10665
Nimbostratus
Aug 30, 2007Set your http profile compress setting to selective and use the following gzip rule. This has addressed our problem by selectively compressing known big files that we serve.
when HTTP_REQUEST {
set hdr_user_agent [string tolower [HTTP::header User-Agent]]
if { $hdr_user_agent contains "windows 98" }
{ COMPRESS::disable }
else
{ if { $hdr_user_agent contains "msie 5." or
$hdr_user_agent contains "msie 6.0"}
{ if { [matchclass [HTTP::uri] contains $::compressed_files]}
{ COMPRESS::enable }
else
{ COMPRESS::disable }
}
else
{ COMPRESS::enable }
}
}
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
