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

Quintin Par quintinpar at gmail.com
Tue Mar 6 11:55:00 UTC 2012


Thanks a lot!
If I instruct nginx to cache a page and if it has ssi tags, will it still
go to the back-end to retrieve?

On Tue, Mar 6, 2012 at 4:49 PM, Antonio P.P. Almeida <appa at perusio.net>wrote:

> > Bird brain me :-)
> >
> > What does this mean?
> >
> > ~SESS[[:alnum:]]+=(?<session_id>[[:graph:]]+) $session_id;
>
> It means to grab the sub-token on the right-hand side of the session token.
> Using POSIX character classes for the regex:
>
> https://en.wikipedia.org/wiki/Regular_expression#POSIX_character_classes
>
> > Also 'if'  is evil inside a location. Right ?
>
> Not really. Here it's a mere return. From the famous IfIsEvil wiki page:
>
>     The only 100% safe things which may be done inside
>     if in location context are:
>
>           return ...;
>           rewrite ... last;
> --appa
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20120306/8c14259b/attachment.html>


More information about the nginx mailing list