COMPRESS::enable¶
Syntax¶
COMPRESS::enable
COMPRESS::enable request
COMPRESS::enable¶
- Enables compression for the current HTTP response. Note that when using this command, you must set the HTTP profile setting Compression to Selective.
COMPRESS::enable request¶
- Enables compression for the current HTTP request. As with the normal COMPRESS::enable, you must enable the HTTP compression profile setting Selective Compression (version 11.x). You must also enable an HTTP profile with “request-chunking selective” selected.
Examples¶
when HTTP_RESPONSE {
if { [HTTP::header Content-Type] contains "text/html;charset=UTF-8"} {
COMPRESS::enable
}
}