Nginx 0.7.67 + Apache how to forbid responses with Set-Cookie being stored

balrog2000 nginx-forum at nginx.us
Thu Nov 24 01:54:56 UTC 2011


Hi,

I am caching apache with nginx. Application is developed by several
people and consists of many modules.
I would like to be sure that if by any case application sets Set-Cookie
in the response and sets X-Accel-Expires > 0 it would not get cached
anyway.

Can i any how use proxy_no_cache with $upstream_http_ variables?
Can I use apache mod_headers to append or modify specific header only in
case set-cookie occurs in the response?


It is easy by looking at the request headers, but have no luck finding
solution for response headers. 
My general idea is to have 100% certainty that responses with Set-Cookie
does not get cached.

0.7.67 is not negotiable as it is debian stable in production.
Apache version 2.2.x

Thanks in advance, Tomasz Kraus
Regards

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,218910,218910#msg-218910



More information about the nginx mailing list