You can include multiple behaviors

Along with your match criteria, you need to include behaviors that should be applied to requests. You can include multiple behaviors in a single delivery policy.

A behavior needs to be enabled for use in a delivery policy

A behavior's associated option in the Subcustomer Enablement behavior must be set to "On" in the base configuration associated with the applicable subcustomer.

There is a maximum number of behaviors

Currently the system supports a maximum of 100 behaviors in a single delivery policy—either within a single rule, or as the grand total for multiple rules. If the delivery policy exceeds this maximum, it is rejected upon submission.

An example of multiple behaviors

This is a simple example in which multiple rules are defined in a single rule. With it, the following apply:

  • If a GET request comes from the IP address, 198.18.48.211 for content in the directories, path1 or path2, it is denied access.
  • The content in the directories, path1 or path2 is refreshed if it was cached by the Edge server before the epoch time 1533081600 (Wed, 01 Aug 2018 00:00:00 GMT).
"matches" : [
    {
        "name" : "url-path",
        "value" : "path1 path2"
    },
    {
        "name" : "http-method",
        "value" : "GET"
    }
],
"behaviors" : [
    {
        "name" : "ip-blacklist",
        "value" : "198.18.48.211"
    },
    {
        "name" : "content-refresh",
        "type" : "epoch",
        "value" : "1533081600"
    }
]