Welcome! Log In Create A New Profile

Advanced

Re: nginx-0.7.48

April 06, 2009 12:40PM
2009/4/6 Igor Sysoev <is@rambler-co.ru>:

>    *) Bugfix: now nginx takes into account the "X-Accel-Expires",
>       "Expires", and "Cache-Control" header lines in a backend response.

It wasn't doing this before?

I had code like this (PHP) - was the Cache-Control being ignored? (I
think all headers should be allowed to pass arbitrarily on
X-Accel-Redirect ... no reason to block headers anytime anything is
being proxied unless it conflicts with the actual proxying process -
people will eventually request them anyway :))

header('Cache-Control: no-cache, no-store');
header('Content-Type: application/octet-stream');
header('Content-Transfer-Encoding: binary');
header('Content-Length: ' . filesize($f_location));
header('Content-Disposition: attachment; filename="'.basename($file_name).'"');
header('X-Accel-Redirect: /foo/protected/' . basename($file_name));

Do I need to change something in this so it works (I'll upgrade to 0.7.50 also)
Subject Author Posted

nginx-0.7.48

Igor Sysoev April 06, 2009 06:20AM

Re: nginx-0.7.48

mike April 06, 2009 12:40PM

Re: nginx-0.7.48

Maxim Dounin April 06, 2009 02:22PM

Re: nginx-0.7.48

mike April 06, 2009 04:48PM

Re: nginx-0.7.48

Maxim Dounin April 06, 2009 07:35PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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