Welcome! Log In Create A New Profile

Advanced

Re: Does Nginx supports If-Range ?

Nelson Marcos
July 04, 2017 10:30AM
Thanks Zhang and Maxim!

I'm checking how to fix that on my backend.

Kind,
NM

2017-07-04 9:21 GMT-03:00 Maxim Dounin <mdounin@mdounin.ru>:

> Hello!
>
> On Mon, Jul 03, 2017 at 05:09:28PM -0300, Nelson Marcos wrote:
>
> > I don't know if it is an expected behaviour or a bug:
> >
> >
> > Scenario 1(OK): If I perform a request *with the header Range*, Nginx
> > serves the *partial content(HTTP 206)*.
> >
> > Scenario 2 (NOT OK): If I perform a request *with the header Range AND
> the
> > header "If-Range" *with the Etag, Nginx serves the *entire file*(200).
> Why
> > not serve the partial content if its cached version matches the If-Range
> > header?
> >
> > In both scenarios the file is already cached.
> >
> > Here is my conf: https://pastebin.com/gQQ0GSg6
> >
> > Here are my requests and my files: https://pastebin.com/rxLwYaSK
>
> The "ETag" header in the response is invalid, as well as
> "If-Range" in the request. Quoting from the second link:
>
> : Etag: 345a2dd5c8f22e9ffaf250151ea820df
> : If-Range: 345a2dd5c8f22e9ffaf250151ea820df
>
> In both cases entity tag should be in double quotes, see
> https://tools.ietf.org/html/rfc2616#section-14.19.
>
> Fixing your backend to return correct ETag will make things work.
> Alternatively, you can use Last-Modified date in the If-Range
> request header instead.
>
> --
> Maxim Dounin
> http://nginx.org/
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Does Nginx supports If-Range ?

Nelson Marcos July 03, 2017 04:10PM

Re: Does Nginx supports If-Range ?

tokers July 03, 2017 09:26PM

Re: Does Nginx supports If-Range ?

Maxim Dounin July 04, 2017 08:22AM

Re: Does Nginx supports If-Range ?

Nelson Marcos July 04, 2017 10:30AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 229
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