Help: cache or not by cookie

Igor Sysoev is at
Thu Jul 9 11:05:16 MSD 2009

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.

Igor Sysoev

More information about the nginx mailing list