ltm rule command CACHE headersΒΆ

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

CACHE::headers
       Returns the HTTP headers of the object in the cache.

SYNOPSIS
       CACHE::headers

DESCRIPTION
       Returns the HTTP headers of the object in the cache.  If CACHE::header is used to manipulate the response headers prior to
       calling CACHE::headers, the modifications will not be reflected by CACHE::headers.

       CACHE::headers

	    * Returns the HTTP headers of the object in the cache as TCL Name / value pairs list.

RETURN VALUE
       Returns the HTTP headers of the object in the cache as TCL Name / value pairs list.

VALID DURING
       CACHE_RESPONSE, CACHE_UPDATE, CACHE_REQUEST

EXAMPLES
	when CACHE_RESPONSE {
	  # log all  HTTP headers sent in cache response.
	  log local0. [CACHE::headers]
	}

HINTS
SEE ALSO
       CACHE::header

CHANGE LOG
       @BIGIP-9.0.5 --First introduced the command.

BIG-IP							    2022-04-12							  iRule(1)