Welcome! Log In Create A New Profile

Advanced

Re: Help: cache or not by cookie

September 04, 2009 06:10AM
On Thu, Sep 03, 2009 at 06:53:41PM -0400, ned0r wrote:

> If you use the proxy_cache_key directive as you demonstrated above (i.e. proxy_cache_key "http://cacheserver$request_uri$cookie_user";) then my understanding is:
>
> If a user doesn't have that cookie set, the page will be cached, and all users who don't have the cookie set will see the same page.
>
> If a user does have that cookie set, then the page will also be cached, but it will only be served to people who have identical values for that cookie (in my case this means users with that session key).
>
> Is this correct?

Yes.

> The problem is that that isn't how it appears to be working at the moment. I've put the $cookie_sessionkey variable in my proxy_cache_key and I'm basically seeing the "logged in page" for both browsers with and without the cookie set :-(
>
> I'm using nginx 0.7.61 (from Debian Sid)

Could you create denug log ?


--
Igor Sysoev
http://sysoev.ru/en/
Subject Author Posted

Help: cache or not by cookie

tonyy June 20, 2009 06:54AM

Re: Help: cache or not by cookie

Igor Sysoev June 20, 2009 09:24AM

Re: Help: cache or not by cookie

Igor Sysoev June 22, 2009 07:32AM

Re: Help: cache or not by cookie

tonyy June 20, 2009 10:04AM

Re: Help: cache or not by cookie

tonyy June 22, 2009 09:53AM

Re: Help: cache or not by cookie

nfn July 08, 2009 06:40PM

Re: Help: cache or not by cookie

Igor Sysoev July 09, 2009 03:05AM

Re: Help: cache or not by cookie

nfn July 09, 2009 06:05AM

Re: Help: cache or not by cookie

Igor Sysoev July 09, 2009 10:26AM

Re: Help: cache or not by cookie

ned0r September 03, 2009 06:53PM

Re: Help: cache or not by cookie

Igor Sysoev September 04, 2009 06:10AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 111
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