最佳答案
您可以像这样添加标题:
原文链接:https://www.f2er.com/nginx/435219.htmladd_header X-Cache-Status $upstream_cache_status
http://wiki.nginx.org/HttpUpstreamModule#.24upstream_cache_status
add_header X-Cache-Status $upstream_cache_status
http://wiki.nginx.org/HttpUpstreamModule#.24upstream_cache_status