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

Could anyone point me how-to? Or give me some clue? I can modify the code myself.