[PATCH] HTTP: Add the $upstream_cache_age variable, allowing better HTTP/1.1 compliance

Damien Tournoud damien at platform.sh
Mon Jun 8 23:12:18 UTC 2015


On Tue, Jun 9, 2015 at 1:08 AM, Damien Tournoud <damien at platform.sh> wrote:

> In other to make the variable useful, I had to where it is set
> in `ngx_http_upstream_send_response()` (in the MISS path),
> so that it is set before sending the headers.
>

(It's late, and I'm contributing to a project that actively discourages
contributions by using Mercurial and mandating submissions to be sent to a
subscribe-only mailing-list. I forgot the name of that project.)

So, here is the non-jibberish version:

In order to make the variable useful, I had to move where it is set
in `ngx_http_upstream_send_response()` (in the MISS path),
so that it is set before sending the headers.

Damien
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20150609/1a43536d/attachment.html>


More information about the nginx-devel mailing list