# 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:** 1

<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:** [04.Май.2016 13:46:59 UTC](https://meta.discourse.org/t/how-can-discourse-make-post-instead-of-delete-for-smart-cdn/43666/1 "2016-05-04T13:46:59Z")

</div>

To delete a topic, Discourse makes a request like:

DELETE [http://example.com/t/123](http://example.com/t/123)

However my CDN doesn’t support DELETE method, but only GET, HEAD, POST, and OPTIONS. I remember that Rails can make a POST request instead of DELETE by adding a “\_method” request variable. So how can I config Discourse to do that?

BTW, my CDN is a kind of “smart” CDN that I just tell it my domain name and do some config on DNS without settings on Discourse part and it will speed my site by caching small files like images and css automatically. So in a word, all client requests, including the DELETE one, go through the CDN server first. Then the CDN server decides to return cached files directly or to go further to my original server next.

---

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