Fix infinite redirect loop on logout from browser caching