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

Why don’t you use the built in CDN support, available by editing app.yml? See the howto topic.