/images/*
) but want a more specific Page Rule to take precedence (rule B: /images/special/*
), specify a higher priority for rule B so it overrides rule A.{
"actions": [
{
"id": "browser_check",
"value": "on"
}
],
"priority": 1,
"status": "active",
"targets": [
{
"constraint": {
"operator": "matches",
"value": "*example.com/images/*"
},
"target": "url"
}
]
}
curl --location --request PATCH 'https://api.cloudflare.com/client/v4/zones//pagerules/' \
--header 'Content-Type: application/json' \
--data-raw '{
"actions": [
{
"id": "browser_check",
"value": "on"
}
],
"priority": 1,
"status": "active",
"targets": [
{
"constraint": {
"operator": "matches",
"value": "*example.com/images/*"
},
"target": "url"
}
]
}'
{
"errors": [],
"messages": [],
"result": {},
"success": true
}