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:
http://forum.nginx.org/read.php?2,193466,193466#msg-193466

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

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,193466,193467#msg-193467

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:
http://forum.nginx.org/read.php?2,193466,193467#msg-193467

Splitice Wrote:

Ssi would be the only way

Sent from my iPod

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs