Бэкенд отдает
HTTP/1.1 200 OK
Server: nginx
Content-Type: image/jpeg
Transfer-Encoding: chunked
Connection: keep-alive
Cache-Control: public
Date: Fri, 18 Mar 2022 14:14:25 GMT
Expires: Sun, 17 Apr 2022 14:14:25 GMT
А после прокси
HTTP/1.1 200 OK
Server: nginx
Date: Fri, 18 Mar 2022 14:15:30 GMT
Content-Type: image/jpeg
Transfer-Encoding: chunked
Connection: keep-alive
Cache-Control: public
pragma: no-cache
expires: -1
X-Cache: EXPIRED
Причем сам кэш работает. И добавляется
add_header X-Cache $upstream_cache_status; в заголовки.