Forum Discussion
meja_127775
Nimbostratus
Nov 13, 2005enable compression if parameter exists in content type
Newbie here. I'm trying to compress data with content type "text/html;charset=UTF-8". I do not want to compress the data if the parameter is missing i.e content type "text/html" should not be compress...
meja_127775
Nimbostratus
Nov 14, 2005Thanks for the responses...
The following rule worked.
when HTTP_RESPONSE {
if { [HTTP::header Content-Type] contains "charset"} {
COMPRESS::enable
}
}
Neither "text/html;charset=UTF-8" nor "charset=UTF-8" worked.
Are ";" and "=" considered as special characters that need to be escaped?
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
