Avoid unuseful ESI generation for not logged in users.