Welcome! Log In Create A New Profile

Advanced

Proxy: Multiple requests for uncached file

Posted by Killiconn 
Proxy: Multiple requests for uncached file
November 22, 2012 03:36PM
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.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 278
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready