STALE responses taking as much as MISS responses

Peter Booth peter_booth at
Mon Feb 11 19:27:05 UTC 2019

You are specifying a key zone that can hold about 80 million keys,
and  three level cache.  Do you really have that many cached files?
Unless you are serving petabytes of content, I’d suggest reverting your settings to default values
and running some test cases to validate correct caching behavior.


> On 11 Feb 2019, at 2:00 PM, Peter Booth <peter_booth at> wrote:
> You should be able to answer this by tailing the log of your nginx and orig server at the same time.
> It would be helpful if you shared an (anonymized) section of both logs. When I say fast or slow 
> I might mean something very different to what you hear.
>> On 11 Feb 2019, at 10:06 AM, joao.pereira <nginx-forum at <mailto:nginx-forum at>> wrote:
>> Just to add more information, I also have:
>> proxy_cache_use_stale   error
>>                                timeout
>>                                invalid_header
>>                                updating
>>                                http_500
>>                                http_502
>>                                http_503
>>                                http_504
>>                                http_404;
>> proxy_cache_background_update   on;
>> Posted at Nginx Forum:,282984,282985#msg-282985 <,282984,282985#msg-282985>
>> _______________________________________________
>> nginx mailing list
>> nginx at <mailto:nginx at>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list