This could possibly cause infinite refreshing of the page, I'd prefer a message shown to the user. That way they get some feedback on what's going on and decide to refresh manually.