我想确定何时获得caching命中或未命中。 最好是,这将是一个标题,像
X-Cache: HIT
要么
X-Cache: MISS
我如何用Nginx(上游服务器的反向代理)来做到这一点?
根据这里的答案:
add_header X-Cache $upstream_cache_status;