proxy_ignore_client_abort to cache files. So when client close connection nginx will continue copying file from backend to current server.
But when another user will try to get this file (which is still copying) nginx will go to backend to get new copy of file and will try to cache it too.
I can use
proxy_cache_lock to prevent it. But it is bad idea, because file can be very large and it will get much time to wait while file will be cached.
How can I tell nginx to read this temporary file and not wait until the file is cached?