| [ Web Proxy ] |
| Viewing: https://developers.cloudflare.com/rules/page-rules/reference/additional-reference/ | [Back] [Original] |
Note
Consider alternative Rules options due to their enhanced configurability. Refer to the migration guide for details.
For more flexibility and customization, consider using Snippets.
This setting is available to Business and Enterprise customers.
TheBypass Cache on Cookiesetting supports basic regular expressions (regex) as follows:
|) to match multiple cookies using OR boolean logic. For example, bypass=.*|PHPSESSID=.* would bypass the cache if either a cookie called bypass or PHPSESSID were set, regardless of the cookie's value..*), such that a rule value of t.*st= would match both a cookie called test and one called teeest.Limitations include:
| in the cookie regexTo learn how to configure Bypass Cache on Cookie with a cache rule, refer to Bypass Cache on Cookie.
Note
If you add both this setting and the enterprise-onlyCache On Cookiesetting to the same page rule,Cache On Cookietakes precedence overBypass Cache on Cookie.
When saving a page rule, Cloudflare will ensure that there is a slash after each occurrence of the current zone name in the If the URL matches field. For example, if the current zone name is example.com, then:
example.com will be saved as example.com/example.com/path/example.com will be saved as example.com/path/example.com/Note that example.com/some-path/cloudflare.com will be saved without a final slash, since the zone name is not cloudflare.com.
If you specify a port in the If the URL matches field of a page rule, it must be one of the following:
If the URL of the current request matches both a page rule and a Workers custom route, some Pages Rules settings will not be applied. For more details, refer to Page Rules.
The pattern entered underIf the URL matches will not consider upper and lower case differences example.com/path, example.com/Path, and example.com/PATH will be triggered the same way.
If you need your rules to consider case sensitivity, you might want to use alternative Rules options instead.
| Web Proxy Viewer | New URL | Original Page |