It's worth to note that an nginx fork called Tengine (by Taobao) has a similar feature before.
http://tengine.taobao.org/index.html