MAGE-471: added slightly modified changes again

Sometimes pages are cached with error messages of users, this should be prevented. Solution: send no-cache header if error message is shown on page.