add_header Set-Cookie The difference between Max-Age and Expires

Robert Paprocki rpaprocki at
Fri Sep 9 16:07:51 UTC 2016

Actually no, ngx.time() is not expensive, it uses the cached value stored in the request so it doesn't need to make a syscall.

> On Sep 9, 2016, at 06:33, itpp2012 <nginx-forum at> wrote:
> Good, keep in mind that "ngx.time()" can be expensive, it would be advisable
> to use a global var to store time and update this var once every hour.
> Posted at Nginx Forum:,269438,269444#msg-269444
> _______________________________________________
> nginx mailing list
> nginx at

More information about the nginx mailing list