Home > Configuration > Compression > setcmpaction_addvaryheader

setcmpaction_addvaryheader

Use this method to set control insertion of the Vary header in HTTP responses compressed by Citrix ADC. Intermediate caches store different versions of the response for different values of the headers present in the Vary response header.

Syntax



Parameters

name

Name of the compression action. Must begin with an ASCII alphabetic or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Can be changed after the action is added. The following requirement applies only to the Citrix ADC CLI: If the name includes one or more spaces, enclose the name in double or single quotation marks (for example, "my cmp action" or 'my cmp action').
This is mandatory parameter.

addvaryheader

Control insertion of the Vary header in HTTP responses compressed by Citrix ADC. Intermediate caches store different versions of the response for different values of the headers present in the Vary response header.
Default value = CMP_VARY_HDR_GLOBAL.
Possible Values : GLOBAL, DISABLED, ENABLED.

varyheadervalue

The value of the HTTP Vary header for compressed responses.

Return Value

Returns simpleResult

See Also