I need to set up a HTTP reverse proxy that will be able to cache requests to the upstream server.
The upstream server serves only static files.
The issue I am facing is that I need a proxy that is capable of starting first byte ASAP (it can't wait for the whole request to buffer) while still caching. It is because my files can be quite large (a few hundred megabytes) but app requirement is to have fast response times.
I tried to use nginx but when I disable proxy_buffering it stops caching at all.
Is there any widely-available, well tested open source project that can do this? Varnish? Squid? HAProxy?