APPENDIX B

Summary Examples of Advanced Expressions and Policies

The following table provides examples of advanced expressions that you can use as the basis for your own advanced expressions.

Examples of Advanced Expressions

Expression Type

Sample Expressions

 

 

Look at the method used in the

http.req.method.eq(post)

HTTP request.

http.req.method.eq(get)

 

Check the Cache-Control or Pragma

http.req.header("Cache-Control").cont

header value in an HTTP request

ains("no-store")

(req) or response (res).

http.req.header("Cache-Control").cont

 

 

ains("no-cache")

 

http.req.header("Pragma").contains("n

 

o-cache")

 

http.res.header("Cache-Control").cont

 

ains("private")

 

http.res.header("Cache-Control").cont

 

ains("public")

 

http.res.header("Cache-Control").cont

 

ains("must-revalidate")

 

http.res.header("Cache-Control").cont

 

ains("proxy-revalidate")

 

http.res.header("Cache-Control").cont

 

ains("max-age")

Check for the presence of a header

http.req.header("myHeader").exists

in a request (req) or response

http.res.header("myHeader").exists

(res).

Page 251
Image 251
Citrix Systems 9.2 manual Summary Examples of Advanced Expressions and Policies, Expression Type Sample Expressions