Maxim Dounin Wrote: ------------------------------------------------------- > Hello! > > The above may happen if nginx worker process dies, > leaving cache > node marked as being updated. Try looking into > your logs to see > if this is the case. That is: if you have alerts > about "worker > process exited on signal ..." - you have a > problby radarek - Nginx Mailing List - English
I have following config: location /images { proxy_pass http://my.host; proxy_redirect off; proxy_cache static-cache; proxy_cache_valid any 5m; proxy_cache_valid 404 5m; proxy_cache_use_stale updating invalid_header error timeout http_502; } The idea is that if backend server reply with error/timeout/invalid header it will return stale version and cache it for 5m. Generallyby radarek - Nginx Mailing List - English