public function userbarAction() { $response = $this->render('KnpBundlesBundle:Developer:userbar.html.twig'); // this is private cache (don't cache with shared proxy) $response->setPrivate(); return $response; }