Chapter 6

Advanced Expressions: Parsing HTTP, TCP, and UDP Data

127

In addition, the following operations identify specific types of Cache-Control headers. See RFC 2616 for details on these header types.

Operations That Evaluate Cache-Control Headers

HTTP Header Operation

Description

 

 

Cache-Control header.

Returns as a text value the name of the Cache-Control

NAME(integer)

header that corresponds to the nth component in a

 

name-value list, as specified by integer.

 

The index of the name-value component is 0-based. If

 

the index that is specified by the integer argument is

 

greater than the number of components in the list, a

 

zero-length text object is returned.

 

Following is an example:

 

http.req.cache_control.name(3).

 

contains("some_text")

Cache-Control header.

Returns a Boolean TRUE if the Cache-Control header

IS_INVALID

is not present in the request or response.

 

Following is an example:

 

http.req.cache_control.is_invalid

Cache-Control header.

Returns a Boolean TRUE if the Cache-Control header

IS_PRIVATE

has the value Private.

 

Following is an example:

 

http.req.cache_control.is_private

Cache-Control header.

Returns a Boolean TRUE if the Cache-Control header

IS_PUBLIC

has the value Private.

 

Following is an example:

 

http.req.cache_control.is_public

Cache-Control header.

Returns a Boolean TRUE if the Cache-Control header

IS_NO_STORE

has the value No-Store.

 

Following is an example:

 

http.req.cache_control.is_no_store

Cache-Control header.

Returns a Boolean TRUE if the Cache-Control header

IS_NO_CACHE

has the value No-Cache.

 

Following is an example:

 

http.req.cache_control.is_no_cache

Cache-Control header.

Returns a Boolean TRUE if the Cache-Control header

IS_MAX_AGE

has the value Max-Age.

 

Following is an example:

 

http.req.cache_control.is_max_age

Page 141
Image 141
Citrix Systems 9.2 manual Operations That Evaluate Cache-Control Headers, 127, Http Header Operation Description