| [ Web Proxy ] |
| Viewing: https://developers.cloudflare.com/api/resources/cache/subresources/variants/methods/delete | [Back] [Original] |
Variant support enables caching variants of images with certain file extensions in addition to the original. This only applies when the origin server sends the Vary: Accept response header. If the origin server sends Vary: Accept but does not serve the variant requested, the response will not be cached. This will be indicated with BYPASS cache status in the response headers.
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYYThe previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.
X-Auth-Email: user@example.comThe previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.
X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194Zone Settings WriteZone Writecurl https://api.cloudflare.com/client/v4/zones/$ZONE_ID/cache/variants \
-X DELETE \
-H "Authorization: Bearer $CLOUDFLARE_API_TOKEN"{
"errors": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"messages": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"success": true,
"result": {
"id": "variants",
"editable": true,
"modified_on": "2014-01-01T05:20:00.12345Z"
}
}{
"errors": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"messages": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"success": true,
"result": {
"id": "variants",
"editable": true,
"modified_on": "2014-01-01T05:20:00.12345Z"
}
}| Web Proxy Viewer | New URL | Original Page |