digest_auth, do not call head request every time just once at the beginning and reuse that information for following digest auth request for a resource