Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit c2d53c1

Browse files
ralphiliusterinjokes
authored andcommitted
purgeCache should be POST
as per documentation here: https://api.cloudflare.com/#zone-purge-files-by-url
1 parent 2079b45 commit c2d53c1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/resources/Zones.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ module.exports = auto(
5858
* @returns {Promise<Object>} The response object
5959
*/
6060
purgeCache: method({
61-
method: 'DELETE',
61+
method: 'POST',
6262
path: ':id/purge_cache',
6363
}),
6464

0 commit comments

Comments
 (0)