ltm rule command CACHE disableΒΆ

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



CACHE::disable
       Disables caching for this request.

SYNOPSIS
       CACHE::disable

DESCRIPTION
       Disables caching for this request.

       CACHE::disable

	    * Disables caching for this request.

RETURN VALUE
VALID DURING
       HTTP_REQUEST, HTTP_RESPONSE

EXAMPLES
	when HTTP_REQUEST {
	  # Disable caching if the URI does not contain the string "images"
	  if { not ([HTTP::uri] contains "images") } {
	    CACHE::disable
	  }
	}


	# Disable caching if the query string contains specific parameter names
	when HTTP_REQUEST {

	   # Check the query string
	   # Prepend a & so that we can look for param names using ¶m_name=
	switch -glob "&[HTTP::query]" {
	      "*¶m1=*" -
	      "*¶m2=*" -
	      "*¶m3=*" -
	      "*¶m4=*" {
		 # Found one of the parameters so disable caching for this request/response
		 CACHE::disable
	      }
	   }
	}

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



BIG-IP				  2017-01-31			      iRule(1)