Welcome! Log In Create A New Profile

Advanced

Is there any way to access upstream response from configuration?

May 25, 2014 02:19PM
Hi,

I am trying to make caching selective based on cookies set by upstream.

Example: worpress sets wordpress_test_cookie for every page, thus preventing caching of pages unless Set-Cookie headers are ignored. On the other hand, ignoring Set-Cookie in general is bad idea, as in this case when other cookies are set (like wordpress_logged_in) the response will be cached as well - and this is a security (and consistency) disaster.

What I want is to check if specific header or cookie in the *response* is set and make decision to cache or not based on this information.

Is this possible at all? I couldn't find anything (like variables) that allows to examine response for this purpose.

PS: I know that there are some "helper" plugins for wordpress, but wordpress is only one of possible applications, I need a solution that could work without application support, that is why I am interested in response examination.

Thank you!
Subject Author Posted

Is there any way to access upstream response from configuration?

aldem May 25, 2014 02:19PM

Re: Is there any way to access upstream response from configuration?

Francis Daly May 25, 2014 03:08PM

Re: Is there any way to access upstream response from configuration?

aldem May 25, 2014 04:43PM

Re: Is there any way to access upstream response from configuration?

Francis Daly May 25, 2014 05:46PM

Re: Is there any way to access upstream response from configuration?

aldem May 25, 2014 06:17PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 152
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready