"Purge Files by URL" API not work

https://api.cloudflare.com/#zone-purge-files-by-url

I called the API successfully and get this response like below.

{
  "result": {
    "id": "my-zone-id"
  },
  "success": true,
  "errors": [],
  "messages": []
}

But the files’ age header hasn’t been updated at all.
I gave graceful period(more than 1 min) before I check it again.

It doesn’t work at all.
Please check it.

A success means it sent the Purge command. If I request an incorrect URL, it will still say Success, but the correct URL isn’t purged.

As a test, try the same URL in the dashboard Cache section for a Purge by URL.

1 Like

Thank you for the reply.

When I post it, I already have tested it on the dashboard Cache section “Purge by URL” with the same URL, it worked. (I could make age young again.)

But when I try it via API, it didn’t work.

Take a look at the Audit Log at the top of dash.cloudflare.com and compare the details of the Dashboard purge vs the API request.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.