mirror of
https://gitnet.fr/deblan/gist.git
synced 2021-08-14 08:30:49 +02:00
add cache controle using createResponse on embedJs action
This commit is contained in:
parent
7c32234626
commit
e5f996705e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user