fastcgi cache use stale "updating" — improvement suggestion

nanochelandro nginx-forum at nginx.us
Wed Sep 10 14:21:18 UTC 2014


Hello All,

fastcgi_cache_use_stale is awesome, especially with "updating" parameter.
But I have a feeling that it lacks a complementary parameter (or a separate
setting to tune "updating" behaviour) that would instruct nginx to quickly
return stale cached response also on first request (while fastcgi app is
busy doing it's hard work). Currently existing behaviour is to return stale
cached responses on consequent requests only, but first response is delayed
until fastcgi finishes it's job.

What do you think?

Thank you.
My deepest regards.

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,253160,253160#msg-253160



More information about the nginx mailing list