ltm rule command COMPRESS enableΒΆ

iRule(1)					  BIG-IP TMSH Manual					     iRule(1)

COMPRESS::enable
       Enables compression for the current HTTP response.

SYNOPSIS
       COMPRESS::enable (request | response)?

DESCRIPTION
       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.

RETURN VALUE
VALID DURING
       HTTP_REQUEST HTTP_REQUEST_DATA HTTP_RESPONSE HTTP_RESPONSE_DATA

EXAMPLES
	when HTTP_RESPONSE {
	  if { [HTTP::header Content-Type] contains "text/html;charset=UTF-8"} {
	    COMPRESS::enable
	  }
	}

HINTS
SEE ALSO
CHANGE LOG
       @BIGIP-9.0.0 --First introduced the command.

BIG-IP						      2020-06-23					     iRule(1)