Welcome! Log In Create A New Profile

Advanced

Issue with If-Range header and X-Accel-Redirect requests with upstream Last-Modified header

Leigh Dyer
September 05, 2011 10:48PM
Hi,

I have nginx 1.0.5 set up as a proxy in front of a Ruby/Ramaze
application, using X-Accel-Redirect to efficiently handle sending large
binary files by handing those transfers over to nginx. Range requests
against this setup work just fine, but "If-Range" headers from the
client are ignored -- the server always returns the requested range,
even when the If-Range date doesn't match the file's Last-Modified date.

The problem seems to be due to this line in our config:

add_header Last-Modified $upstream_http_last_modified;

This sets the Last-Modified date on file sent to the client to the value
sent to nginx from Ruby. With this line in the config, I get the
If-Range issue described above. If I comment this out, Last-Modified is
taken from the file's mtime instead, but If-Range works.

Is there any chance of getting this fixed?

Thanks
Leigh

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

Issue with If-Range header and X-Accel-Redirect requests with upstream Last-Modified header

Leigh Dyer September 05, 2011 10:48PM

Re: Issue with If-Range header and X-Accel-Redirect requests with upstream Last-Modified header

Maxim Dounin September 06, 2011 02:52AM

Re: Issue with If-Range header and X-Accel-Redirect requests with upstream Last-Modified header

Leigh Dyer September 06, 2011 03:02AM

Re: Issue with If-Range header and X-Accel-Redirect requests with upstream Last-Modified header

Andrew Alexeev September 06, 2011 03:04AM

Re: Issue with If-Range header and X-Accel-Redirect requests with upstream Last-Modified header

Leigh Dyer September 06, 2011 02:54AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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