filecoin-saturn / L1-node

Filecoin Saturn L1 Node • The edge cache layer of Filecoin's decentralized CDN 🪐
Other
143 stars 49 forks source link

Limit buffering of cache missed responses #308

Closed willscott closed 1 year ago

willscott commented 1 year ago

saturn nginx is not configured with proxy buffering off. This means that NGINX on Saturn will wait to get the whole response from the shim/Lassie before sending it back to the gateway. Is this intended?

https://docs.nginx.com/nginx/admin-guide/web-server/reverse-proxy/#configuring-buffers

hannahhoward commented 1 year ago

I'll admit while the above text does seem to indicate holding the whole response, others make it seem very unclear. I'm honestly perplexed and anyway caching is completely disabled by proxy_buffering off so that seems untenable. that said, it would be helpful to direct test TTFB on Saturn + Lassie from a client like ARC.

guanzo commented 1 year ago

caching is completely disabled by proxy_buffering off so that seems untenable

can confirm. Not sure if we can proceed here.

willscott commented 1 year ago

we've confirmed at this point that cache misses do stream.