Francis Daly
May 25, 2014 03:08PM
On Sun, May 25, 2014 at 02:19:16PM -0400, aldem wrote:

Hi there,

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

http://nginx.org/r/proxy_no_cache

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

http://nginx.org/en/docs/http/ngx_http_upstream_module.html#variables

If you specifically care about cookies, it will likely be easier if
you use 1.7.1 or newer. If you merely care about response headers,
then older versions will work too.

You may find it useful to use "map" too.

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
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: 135
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