Checks if the user is logged in when trying to serve a cached content
Sends informations when serving and writing, in the HTTP headers