Added getRemoteAddr to check for HTTP_X_FORWARDED_FOR for Varnish cache on live server