Aggiungi l'intestazione HTTP `X-Cache-Status`

Scopo: Sarebbe bello se ci fosse un modo semplice per verificare se la cache è effettivamente funzionante.

In discourse/config/nginx.sample.conf at main · discourse/discourse · GitHub per il frontend:

add_header X-Cache-Status $upstream_cache_status;

Citazione Module ngx_http_upstream_module

$upstream_cache_status
mantiene lo stato dell’accesso a una cache di risposta (0.8.3). Lo stato può essere “MISS”, “BYPASS”, “EXPIRED”, “STALE”, “UPDATING”, “REVALIDATED” o “HIT”.