Authenication caching and 401 access denied completed