Welcome! Log In Create A New Profile

Advanced

Re: [nginx logging module]$Request_time almost show 0.000 with proxy cache configuration

Maxim Dounin
June 22, 2017 09:42AM
Hello!

On Thu, Jun 22, 2017 at 05:53:04AM -0400, jindov wrote:

> I've configured for nginx to cache static like jpeg|png. The problem is if
> request with MISS status, it will show a non-zero value request_time, but if
> a HIT request, the request_time value is 0.000.

This is expected behaviour. When nginx is able to fully serve a
request during one event loop iteration (that is, read the
request, and fully send the response to the socket), $request_time
will be 0, as nginx's internal time is only updated once per event
loop iteration.

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

[nginx logging module]$Request_time almost show 0.000 with proxy cache configuration

jindov June 22, 2017 05:53AM

Re: [nginx logging module]$Request_time almost show 0.000 with proxy cache configuration

Maxim Dounin June 22, 2017 09:42AM

Re: [nginx logging module]$Request_time almost show 0.000 with proxy cache configuration

pbooth June 22, 2017 10:00AM

Re: [nginx logging module]$Request_time almost show 0.000 with proxy cache configuration

Lucas Rolff June 22, 2017 10:18AM

Re: [nginx logging module]$Request_time almost show 0.000 with proxy cache configuration

jindov June 23, 2017 04:02AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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