Nimish, could you check if Nginx has the permissions to write to the cache folder /var/lib/nginx/cache-github? Secondly, you probably need to send the User-Agent header with your username.