才知道 Cloudflare 的这个规则是「顺序」匹配但是只生效匹配到的最后一个, 这和一般的防火墙按顺序匹配但只生效第一个匹配到的规则有点不太一样吧.
所以进来的请求如果按规则顺序(升序)都匹配到了下面的九条规则, 但最终其实是按降序生效的? :jerry_question:
https://media.naeu.net/08fb08be14381a1b0be02f66fd5a84c08e4c82ce89365dca77bbf0491a5ed62c.webp
才知道 Cloudflare 的这个规则是「顺序」匹配但是只生效匹配到的最后一个, 这和一般的防火墙按顺序匹配但只生效第一个匹配到的规则有点不太一样吧.
所以进来的请求如果按规则顺序(升序)都匹配到了下面的九条规则, 但最终其实是按降序生效的? :jerry_question:
https://media.naeu.net/08fb08be14381a1b0be02f66fd5a84c08e4c82ce89365dca77bbf0491a5ed62c.webp
For example, if multiple cache rules match the same URL, then the features set in those cache rules will all be applied in order. If several matching rules set a value for the same setting, the value in the last matching rule wins.
For conflicting settings (for example, bypass cache versus eligible for cache), the last matching rule wins.
—— https://developers.cloudflare.com/cache/how-to/cache-rules/order/