Forum Discussion
33boston_223
Nimbostratus
Jan 15, 2009Gzip compression levels
Hi - New to irules so I was hoping someone could help with what I need to aaccomplish.
We would like to apply a higher compression level to any .aspx requests. How would I go about doi...
Nicolas_Menant
Employee
Jan 16, 2009it is a strange error message since based on the WIKI you should be allow to use it within HTTP_REQUEST... maybe you are not authorized and can only do it in the response
if this is the case you can do something like this:
when CLIENT_ACCEPTED {
set increase_compress 0
}
when HTTP_REQUEST {
if {[HTTP::path] ends_with ".aspx"} {
set increase_compress 1
} else {
set increase_compress 0
}
}
when HTTP_RESPONSE {
if {$increase_compress equals "1"} {
COMPRESS::gzip level 5
}
}
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