Welcome! Log In Create A New Profile

Advanced

proxy_cache without proxy_buffers

February 26, 2019 03:09PM
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.
Subject Author Posted

proxy_cache without proxy_buffers

loopback_proxy February 26, 2019 03:09PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 174
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