[PATCH] When cache file is expired, nginx can make a lot of upstream requests.
Sangdeuk Kwon
sangdeuk.kwon at quantil.com
Tue Mar 31 04:59:31 UTC 2020
Thank you for your explanation
I have a question.
Are there any directives for preventing multiple upstream and serving new
content?
expect case:
1st request: get new content from origin and serve new content.
2nd request: serve new content.
3rd request: serve new content.
"proxy_cache_use stale updating" and "proxy_cache_background_update off"
case:
1st request: get new content from origin and serve new content.
2nd request: serve stale content.
finish 1st request's upstream.
3rd request: serve new content.
"proxy_cache_use stale updating" and "proxy_cache_background_update on"
case:
1st request: serve stale content and make subrequest for getting new
content.
2nd request: serve stale content.
finish 1st request's subrequest.
3rd request: serve new content.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20200331/5c0b5e38/attachment.htm>
More information about the nginx-devel
mailing list