ltm rule command AVR disable cspm injection
iRule(1) BIG-IP TMSH Manual iRule(1)
AVR::disable_cspm_injection
Disables CSPM injection for the current connection.
SYNOPSIS
AVR::disable_cspm_injection
DESCRIPTION
The CSPM (Client Side Performance Monitoring) feature injects
JavaScript into HTTP responses to track the Page Load Time metric. This
command disables CSPM JavaScropt injection.
Syntax
AVR::disable_cspm_injection
RETURN VALUE
VALID DURING
AVR_CSPM_INJECTION, HTTP_RESPONSE
EXAMPLES
To make decisons based on request headers use event AVR_CSPM_INJECTION
when AVR_CSPM_INJECTION {
if { [HTTP::header "User-Agent"] contains "MSIE" } {
AVR::disable_cspm_injection
}
}
To make decisions based on response headers use HTTP_RESPONSE
when HTTP_RESPONSE {
if { [HTTP::status] == 404 } {
AVR::disable_cspm_injection
}
}
HINTS
SEE ALSO
CHANGE LOG
@BIGIP-11.2.0 --First introduced the command.
BIG-IP 2017-01-31 iRule(1)