How to cache pages that are mostly static but has a "logged in" bar?

I have pages that are generated dynamically but don’t change all that
often. Would like to use Nginx to cache those pages.

However every page has a “log in” bar at the top, similar to this forum.
A logged-in user would see his name and a “log out” link. A user who
isn’t logged in would see links to “log in” or to “register”.

How do I cache a page like this where there is a small element that
needs to be personalized? Normally this is a job for ESI, but Nginx
doesn’t support ESI. Any suggestions?

Thanks.

Posted at Nginx Forum:

Forgot to add, I’m planning to use memc-nginx-module for the caching, if
that makes any difference.

Posted at Nginx Forum:

separate the part. use ajax in my opinion

在 2011-4-25 上午8:15,“Andy” [email protected]编写:

Forgot to add, I’m planning to use memc-nginx-module for the caching, if
that makes any difference.

Posted at Nginx Forum:

Splitice Wrote:

Ssi would be the only way

Sent from my iPod