Cache vs authenticated users

Hi, how does the cache work when the content of a url is different if the user is logged in or not.

The static files (images, CSS, JS) should be the same, regardless. The content (HTML) is not cached by default.