2
0
Fork 0
mirror of git://git.savannah.gnu.org/guix/maintenance.git synced 2023-12-14 03:33:04 +01:00

nginx: mirror: Use HTTP 1.1 to talk to the backend.

This commit is contained in:
Ludovic Courtès 2016-03-22 15:27:26 +01:00
parent 443fb6e8d5
commit ea01e13f18

View file

@ -33,6 +33,11 @@ http {
keepalive_timeout 65;
# Use HTTP 1.1 to talk to the backend so we benefit from
# keep-alive connections and chunked transfer encoding. The
# latter allows us to make sure we do not cache partial downloads.
proxy_http_version 1.1;
# The 'inactive' parameter for caching is not very useful in our
# case: all that matters is that LRU sweeping happens when
# 'max_size' is hit.