[nginx logging module]$Request_time almost show 0.000 with proxy cache configuration
Maxim Dounin
mdounin at mdounin.ru
Thu Jun 22 13:41:51 UTC 2017
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/
More information about the nginx
mailing list