Welcome! Log In Create A New Profile

Advanced

Re: Reverse Proxy Cache Setup

Ryan Malayter
March 29, 2010 11:50AM
On Mon, Mar 29, 2010 at 8:41 AM, royo <nginx-forum@nginx.us> wrote:
> I'm trying to use nginx as a reverse cahce for my website which may require people to be logged in. I'm trying to figure out how to configure it so that users that don't have a certain cookie set receive cached pages while others will receive non-cached responses, assuming the cookie is "logmein".

Use $http_cookie_$logmein appended to whatever you're using for
proxy_cache_key, so that you get a unique cache key for each user.
This assumes that $logmein has a different value for every logged-in
user (i.e. it is a session ID).

You can also have the back-end explicitly set "Cache-Control:
no-cache" for logged in pages, so they don't get stored by nginx at
all.

--
RPM

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Reverse Proxy Cache Setup

royo March 29, 2010 09:41AM

Re: Reverse Proxy Cache Setup

Ryan Malayter March 29, 2010 11:50AM

Re: Reverse Proxy Cache Setup

royo March 29, 2010 12:44PM

Re: Reverse Proxy Cache Setup

Ryan Malayter March 29, 2010 01:10PM

Re: Reverse Proxy Cache Setup

royo March 29, 2010 01:19PM

Re: Reverse Proxy Cache Setup

Ryan Malayter March 30, 2010 11:10PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 173
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready