src/Sulu/Bundle/WebsiteBundle/Controller/SitemapController.php
private function createBinaryFileResponse($file)
    {
        $response = new BinaryFileResponse($file);
        $response->headers->addCacheControlDirective('no-store', true);

        return $response;
    }
private function createBinaryFileResponse($file)
    {
        $response = new BinaryFileResponse($file);
        $response->headers->addCacheControlDirective('no-store', true);

        return $response;
    }
private function createBinaryFileResponse ( $ file ) { $ response = new BinaryFileResponse ( $ file ) ; $ response -> headers -> addCacheControlDirective ( 'no-store' , true ) ; return $ response ; }
Create a binary file response.

@param string $file

@return BinaryFileResponse
Create a binary file response .