Welcome! Log In Create A New Profile

Advanced

Re: Patch for Age header

Woon Wai Keen
September 22, 2011 05:12PM
I finally realize my Age method is vulnerable to clock skew as it is
calculated from the upstream Date. There seems to be no way to get the
date/time that the original request was made to the origin. The closest
is the cached file's mtime, but this represents the time that the
request finished, not the start.

On 2010-06-09 1:47 PM, Woon Wai Keen wrote:
> Hi all, I would like to contribute a patch to provide the cached file
> age as a variable $proxy_cache_age , which can then be used together
> with add_header Age $proxy_cache_age.
>
> The age calculation is not RFC2616 compliant (13.2.3) as it doesn't
> take into consideration the cached origin Age header and Date. Is it
> feasible to extract this from the cached headers?
>
>
>
> _______________________________________________
> nginx-devel mailing list
> nginx-devel@nginx.org
> http://nginx.org/mailman/listinfo/nginx-devel

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

Patch for Age header

Woon Wai Keen 2585 June 09, 2010 01:50AM

Re: Patch for Age header

Woon Wai Keen 791 September 22, 2011 05:12PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

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