11 messages in ru.sysoev.nginxRe: Help: cache or not by cookie
FromSent OnAttachments
tonyyJun 20, 2009 3:54 am 
Igor SysoevJun 20, 2009 6:23 am 
tonyyJun 20, 2009 7:03 am 
Igor SysoevJun 22, 2009 4:32 am 
tonyyJun 22, 2009 6:53 am 
nfnJul 8, 2009 3:40 pm 
Igor SysoevJul 9, 2009 12:04 am 
nfnJul 9, 2009 3:05 am 
Igor SysoevJul 9, 2009 7:26 am 
ned0rSep 3, 2009 3:53 pm 
Igor SysoevSep 4, 2009 2:36 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: Help: cache or not by cookieActions...
From:Igor Sysoev (is@rambler-co.ru)
Date:Jul 9, 2009 12:04:53 am
List:ru.sysoev.nginx

On Wed, Jul 08, 2009 at 06:40:49PM -0400, nfn wrote:

Hello,

Sorry for bumping this topic but I was trying to setup a similar configuration. I want to show cached pages for a refresh of 6 min to guests (cookie user=guest)
and to members (cookie user=usergroup)

proxy_cache_key "http://cacheserver$request_uri $cookie_user"; proxy_cache_valid 6m;

Am I able to read the value from the cookie? How? How do I add X-Accel-Expires: 0 to nginx?

You should add this header in backend.