Conditions

A condition in a page rule is used to match various attributes of a request, determining whether the corresponding actions should be executed.

A condition in a page rule is used to match various attributes of a request, determining whether the corresponding actions should be executed. Each condition consists of three parts:

  • Variable: The request attribute to inspect, serving as the left operand.
  • Operator: The method of comparison.
  • Values: The target values to compare against, serving as the right operand.

Conditions also support an optional caseless setting. When set to true, string comparisons will be case-insensitive.


Condition Variables

Condition variables are the left operands used in page rules to match request attributes.

Condition Operators

Operators define how a variable is compared against a value.

time condition

OpenResty Edge provides two types of time conditions.

Conditions related to file upload

Currently OpenResty Edge provides 3 conditions related to file upload.

Recognized upload file types

The following upload file types are recognized by OpenResty Edge: 123, 3gg, 3gp, 3g2, 7z, aba, abi, aby, idx, accdb, acm, adf, adx, aiff, ain, ami.