Welcome! Log In Create A New Profile

Advanced

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

November 23, 2011 08:54PM
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
Subject Author Posted

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

balrog2000 November 23, 2011 08:54PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 302
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready