The header "Content-Length: 0" causes problems in Firefox and curl (curl: (92) HTTP/2 stream 1 was not closed cleanly: PROTOCOL_ERROR (err 1) or Firefox doesn't download the content).
The "backends.Backend.Length()" function can only return 0, so maybe it can be removed completely.
The error occurs when the upstream server responds without a "Content-Length" header. The cache server then adds "Content-Length: 0", which causes the problem.
The header "Content-Length: 0" causes problems in Firefox and curl (curl: (92) HTTP/2 stream 1 was not closed cleanly: PROTOCOL_ERROR (err 1) or Firefox doesn't download the content).
The "backends.Backend.Length()" function can only return 0, so maybe it can be removed completely.