# How can Discourse make POST instead of DELETE for "smart" CDN?

**URL:** <https://meta.discourse.org/t/how-can-discourse-make-post-instead-of-delete-for-smart-cdn/43666>\
**Category:** Product Support\
**Created:** [04.Май.2016 13:46:59 UTC](https://meta.discourse.org/t/how-can-discourse-make-post-instead-of-delete-for-smart-cdn/43666 "2016-05-04T13:46:59Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![louirobert](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/louirobert/32/62262_2.png) [@louirobert](https://meta.discourse.org/u/louirobert)\
**Post date:** [02.Октябрь.2016 02:15:32 UTC](https://meta.discourse.org/t/how-can-discourse-make-post-instead-of-delete-for-smart-cdn/43666/6 "2016-10-02T02:15:32Z")

</div>

I think it’s great to make an option in admin panel to allow POST for DELETE. This is not only for CDN but may also for servers, proxies that don’t support DELETE. And it’s especially useful for the kind of _smart_ CDN, which can speed up all images, including user uploaded ones, but may not support DELETE method. Aliyun CDN, one of the biggest in China, is just such an example.

BTW, I’ve made a patch of code to use POST for DELETE at [GitHub - coin8086/discourse-ajax: Discourse Ajax patch for CDN/server that doesn't support HTTP DELETE method · GitHub](https://github.com/coin8086/discourse-ajax). You see it’s not difficult.

---

_[View the full topic](https://meta.discourse.org/t/how-can-discourse-make-post-instead-of-delete-for-smart-cdn/43666)._
