Welcome! Log In Create A New Profile

Advanced

Re: Multiple caching solutions for anonymous and logged in users with SSI on

Quintin Par
March 06, 2012 03:52AM
Thanks Antonio.

On a side note, if I craft a proxy cache key with cookie_sessionid and if
the sessionid cookie does not exist, *will nginx take it as an empty value*?


Can nginx do a try_files or “if” on the existence of a cookie? This will
help me deliver two caching strategies in the same location directive.

-Quintin

On Tue, Mar 6, 2012 at 6:29 AM, António P. P. Almeida <appa@perusio.net>wrote:

> On 5 Mar 2012 04h20 CET, quintinpar@gmail.com wrote:
>
> > Hi all,
> >
> > I guess many people didn't understand my question.
> >
> > To make it simple, Can I have two caching strategies together:
> >
> > one for logged in users and one for non-logged in users in the same
> > location directive?
>
> I think that you need two locations for each batch of users. Define
> two locations and use map to test for the session cookie. If Present
> return a 418 and use error_page to redirect to the logged in users
> setup.
>
> You probably can do more "dynamic" things using the embedded Lua
> module [1].
>
> --- appa
>
> [1] http://wiki.nginx.org/HttpLuaModule
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
SubjectAuthorPosted

Multiple caching solutions for anonymous and logged in users with SSI on

Quintin ParMarch 04, 2012 10:28AM

Re: Multiple caching solutions for anonymous and logged in users with SSI on

Quintin ParMarch 04, 2012 10:22PM

Re: Multiple caching solutions for anonymous and logged in users with SSI on

António P. P. AlmeidaMarch 05, 2012 08:02PM

Re: Multiple caching solutions for anonymous and logged in users with SSI on

Quintin ParMarch 06, 2012 03:52AM

Re: Multiple caching solutions for anonymous and logged in users with SSI on

Antonio P.P. AlmeidaMarch 06, 2012 05:02AM

Re: Multiple caching solutions for anonymous and logged in users with SSI on

Quintin ParMarch 06, 2012 06:14AM

Re: Multiple caching solutions for anonymous and logged in users with SSI on

Antonio P.P. AlmeidaMarch 06, 2012 06:16AM

Re[2]: Multiple caching solutions for anonymous and logged in users withSSI on

MaxMarch 06, 2012 12:56PM

Re[2]: Multiple caching solutions for anonymous and logged in users with SSI on

MaxMarch 06, 2012 01:16PM

Re: Multiple caching solutions for anonymous and logged in users with SSI on

Ed WMarch 06, 2012 11:48AM

Re: Multiple caching solutions for anonymous and logged in users with SSI on

Antonio P.P. AlmeidaMarch 06, 2012 06:20AM

Re: Multiple caching solutions for anonymous and logged in users with SSI on

Quintin ParMarch 06, 2012 06:56AM

Re: Multiple caching solutions for anonymous and logged in users with SSI on

Antonio P.P. AlmeidaMarch 06, 2012 07:12AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 55
Record Number of Users: 7 on March 06, 2014
Record Number of Guests: 156 on March 20, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready