Hippo caching and logged in users


Is there any way to serve different cache variants for the same page (same url) when using the hst page cache or the enterprise caching.

For example the header component in many sites for logged in users is different from not logged in users: