add_header Set-Cookie The difference between Max-Age and Expires
rpaprocki at fearnothingproductions.net
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 forum.nginx.org> 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: https://forum.nginx.org/read.php?2,269438,269444#msg-269444
> nginx mailing list
> nginx at nginx.org
More information about the nginx