proxy_cache without proxy_buffers

loopback_proxy nginx-forum at forum.nginx.org
Tue Feb 26 20:09:35 UTC 2019


I am wondering if Nginx will ever support caching without buffering
responses? Buffering the full response before sending the data out to client
increases the first byte latency (aka TTFB). In a perfect world if nginx can
stream the data to the cache file and to the client simultaneously that
would solve the TTFB issues. From experience i know that squid follows this
methodology. I am curious why Nginx went with the buffering approach. 

You can make it even more efficient by using splice. splice upstream fd to
disk and splice from disk to downstream fd.

Thanks for all the replies.

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,283191,283191#msg-283191



More information about the nginx mailing list