I am using Nginx as a proxy to cache very large files.
When I make a request for a file that is not in the cache it goes upstream to get it, as it should.
When I make a second request for the same file, the first one still downloading, I see Nginx create another connection upstream to get the file. (all subsequent requests are the same until the file is fully cached).
I would think that there is should be a way for it to know that it already has a connection streaming in this file and be able to use what it is sending. I would think the second file would download around the same speed as a cached file until it catches up to the first request for the file.
Does Nginx already support this and I'm just not configured properly?
Thanks for any help in advance.