It was already set but apparently wasn't being used.
location /static/ {
try_files $uri @apache-cache;
proxy_cache_valid 5m;
}
location @apache-cache {
...
proxy_ignore_headers Set-Cookie Expires Cache-Control;
proxy_hide_header Set-Cookie;
internal;
}
Moved this directive to second location and now it's all fine.
Thanks!