public function userLinksAction()
    {
        $response = new Response();
        $response->setSharedMaxAge(3600);
        $response->setVary('Cookie');

        return $this->render(
            'eZDemoBundle::page_header_links.html.twig',
            array(),
            $response
        );
    }
public function userLinksAction()
    {
        $response = new Response();
        $response->setSharedMaxAge(3600);
        $response->setVary('Cookie');

        return $this->render(
            'eZDemoBundle::page_header_links.html.twig',
            array(),
            $response
        );
    }
public function userLinksAction ( ) { $ response = new Response ( ) ; $ response -> setSharedMaxAge ( 3600 ) ; $ response -> setVary ( 'Cookie' ) ; return $ this -> render ( 'eZDemoBundle::page_header_links.html.twig' , array ( ) , $ response ) ; }
Renders page header links with cache control.

@return \Symfony\Component\HttpFoundation\Response
Renders page header links with cache control .