redirect user to the referrer if latest request was not GET after timeout

closes #2421
Merge pull request #2427 from plataformatec/issue-2421

redirect user to the referrer if latest request was not GET after timeout