Logging non-cached requests

Igor Sysoev igor at sysoev.ru
Thu Nov 26 11:01:11 MSK 2009

On Wed, Nov 25, 2009 at 03:39:01PM -0500, Nime wrote:

> Is it possible to log requests only if they have not been served by proxy_cache? 
> I only want to see all the requests that actually go to my (slow) upstream, not served statically

You may log $upstream_cache_status to distinguish them.

Igor Sysoev

More information about the nginx mailing list