Potential Bug: Gzipping preventing HTTP range requests
igor at sysoev.ru
Fri Jun 24 23:21:05 MSD 2011
On Fri, Jun 24, 2011 at 01:46:46PM -0400, Ensiferous wrote:
> A question was posed in IRC yesterday about Range requests not being
> honoured when using gzipping.
> After testing it I've confirmed that there appears to be a problem.
> I've put a test file online you can test against:
> The following curl runs were used to test:
> curl -r 0-5 http://188.8.131.52/range.txt <- gives 6 bytes
> curl -r 0-5 --compressed http://184.108.40.206/range.txt <- gives full
> I've pasted the results of debug logging here:
> Thanks for your attention,
> Martin Fjordvald
There is an issue with gzipping and ranges - what should be done first.
As far as I know there is no order description in RFC (correct me, if
I wrong), so we can implement only de facto state (as it's already
done with gzip content encoding).
Apache (at least 2.3.8) gzips content first and then process ranges
on gzipped body and according gzipped content length, but I do not
know how browsers handle this.
More information about the nginx