Stop caching for logged in users and on login/register pages