I already use it for somethings..
But what way would you use it to fix this problem? It can do a lot of thingslol..
Just thinking out loud. Perhaps you can avoid using Varnish altogether
and staying purely nginx by using agentzh's Embedded Lua Module.
nginx mailing list