ProxySG Content Policy Language Guide
Evaluation Order
CacheOS 4.x filter files have a different order of evaluation than CPL files.
A compiled filter file behaves as if it had a single [Prefix] section, a single
•Any naked filter line that contains
•Any remaining naked filter lines are moved into a virtual [Prefix] section.
•All explicit [Prefix] sections are appended to the virtual [Prefix] section, in the order they are written.
•All explicit
•All explicit
After all of this rewriting is performed, the filter file has the following order of evaluation:
1.The ALL statements.
2.The virtual [Prefix] section. Within this section, it is the longest match that wins, not the first match.
3.The virtual
4.The virtual
5.The default_filter_properties statements.
Within the above order of evaluation, the first statement that matches wins, or determines how the transaction is handled. At most, one statement is executed. The filter file policy is executed by both proxy and cache transactions, so it is as if the filter file represented a single CPL <Cache> layer.
306