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!
Posted at Nginx Forum:
https://forum.nginx.org/read.php?2,266939,266942#msg-266942
_______________________________________________
nginx mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx