Welcome! Log In Create A New Profile

Advanced

Re: slice module not handling 416

Roman Arutyunyan
November 07, 2018 07:24AM
Hi,

On Tue, Nov 06, 2018 at 08:21:01PM +0000, Piers Haken wrote:
> i'm trying to use the slice module to cache large files, as described here:
>
> https://guo365.github.io/study/nginx.org/en/docs/admin-guide/Web%20content%20cache.html#slice
>
> however, the slice module _always_ requests the full slice range regardless of the size of the file, and the servers that i'm proxying return "416 The requested range is not satisfiable" which seems to be the correct response as defined in https://tools.ietf.org/html/rfc7233#section-4.4.

The RFC states that 416 should be returned if the requested range does not
overlap the file. This should not happen with the slice module. Even the
last slice should overlap the file.

The 416 (Range Not Satisfiable) status code indicates that none of
the ranges in the request's Range header field (Section 3.1) overlap
the current extent of the selected resource...

There are cases when the slice module does not even know the size of the file,
for example when requesting the first slice.

> I cannot change the behavior of those proxied servers, and i really need this to work. is there something else i can do to work around this?

--
Roman Arutyunyan
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

slice module not handling 416

Piers Haken November 06, 2018 03:22PM

Re: slice module not handling 416

Roman Arutyunyan November 07, 2018 07:24AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 267
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready