Thanks for your answer. However, it's not secure enough for me and i prefer adding one more command line to the deployment process to ensure cache is working. thanks Posted at Nginx Forum: http://forum.nginx.org/read.php?2,232235,232297#msg-232297