One of the easiest ways is to simply add an additional header. To do this, we add the additional directive to our existing proxy configuration within the location block directive:
proxy_set_header X-Cache-Status $upstream_cache_status;
One of the easiest ways is to simply add an additional header. To do this, we add the additional directive to our existing proxy configuration within the location block directive:
proxy_set_header X-Cache-Status $upstream_cache_status;