cloudflare / node-cloudflare

Node.js API for Client API
https://cloudflare.github.io/node-cloudflare/
Other
335 stars 92 forks source link

purgeCache should be POST #81

Closed ralphilius closed 4 years ago

ralphilius commented 4 years ago

as per documentation here: https://api.cloudflare.com/#zone-purge-files-by-url

coveralls commented 4 years ago

Coverage Status

Coverage remained the same at 87.597% when pulling 12e6c4477c8b47118f8d8cf593ddf880b4c3cd9b on ralphilius:patch-1 into 2079b457e7ceae23e52e1bfa4d426a5a53ceb81b on cloudflare:master.

terinjokes commented 4 years ago

I can update this to reflect the current documentation.

The DELETE method should still work, as it was a documented V4 endpoint. Can you confirm if it does or does not work for you?

ralphilius commented 4 years ago

@terinjokes I can confirm it didn't work with DELETE method

terinjokes commented 4 years ago

I'll bother the team about that. It definitely should have continued working, as it was documented for years.

https://web.archive.org/web/20180312234935/http://api.cloudflare.com/