Policy
Policies under the same service share a unified priority sequence. Configuring multiple priority weights can achieve complicated access control and caching logic.
A policy consists of the following components:
- Policy Name
- Matching Rules (URL Path (mandatory), Query String (optional) )
- Priority Weight
- Service Setting Items
Matching rules include Equals, Prefix, Suffix, and Regex. Can configure different matching methods for URL path and query string.
When a client request reaches the CDN service node, all policies matching the request will be applied.
- If a request has implemented multiple non-conflicting policies, the CDN node will apply all policies to the request.
- If the policies conflict, the policy with the highest priority weight takes precedence, and policies with lower priority are ignored.