add cache controle using createResponse on embedJs action

This commit is contained in:
Simon Vieille 2019-02-07 10:27:37 +01:00
parent 7c32234626
commit e5f996705e
Signed by: deblan
GPG key ID: 03383D15A1D31745

View file

@ -72,7 +72,7 @@ class ViewController extends Controller
{
$viewOptions = $this->getViewOptions($request, $gist, $commit);
$response = $this->createResponse('View/embedJs.html.twig', $viewOptions),
$response = $this->createResponse('View/embedJs.html.twig', $viewOptions);
$response->headers->set('Content-Type', 'text/javascript');
return $response;