A

PPENDIX

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 request. http.req.method.eq(post)
http.req.method.eq(get)
Check the Cache-Control or Pragma
header value in an HTTP request
(req) or response (res).
http.req.header("Cache-Control").cont
ains("no-store")
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
in a request (req) or response
(res).
http.req.header("myHeader").exists
http.res.header("myHeader").exists