Thanks Igor, but how do I validate if the user is guest. I only want to show the cached version to guests. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,3173,3923#msg-3923