Multiple range request and proxy_force_ranges directive
mdounin at mdounin.ru
Tue Dec 18 19:01:11 UTC 2018
On Tue, Dec 18, 2018 at 11:46:54AM -0500, traquila wrote:
> Hi everybody,
> I have an issue with multiple range requests in a proxy_pass context.
> When I want to support the HTTP range requests, I use to enable the
> proxy_force_ranges directive in two cases:
> - When the origin server does not support HTTP range
> - When I want to download the full content from the origin (with
> proxy_set_header Range "";) and serve only the requested range.
> However, this does not work for multiple ranges requests, as the
> "single_range" flag is set by the proxy_force_ranges directive.
> The flag comes from this old patch
> When I change the code to remove the single_range flag in case of
> force_ranges, everything works fine; but I am not sure of the edge effects.
The r->single_range flag is there for a reason. Multipart range
requests are only supported if the whole response is in the single
More information about the nginx