nginx 配置 缓存更新,后端故障,允许使用过期缓存

1.配置 缓存更新,后端故障,允许使用过期缓存

#缓存配置 , 不能去掉
proxy_cache_path proxy_cache levels=1:2 keys_zone=page_cache:512m inactive=1m max_size=80g use_temp_path=off;
#配置 缓存更新,后端故障,允许使用过期缓存
proxy_cache_use_stale error timeout invalid_header updating http_500 http_502 http_503 http_504;

原文地址:https://www.cnblogs.com/hixiaowei/p/12104013.html