Browse Source

add cache controle using createResponse on embedJs action

dev-master
Simon Vieille 2 years ago
parent
commit
e5f996705e
Signed by: deblan GPG Key ID: 03383D15A1D31745
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Gist/Controller/ViewController.php

+ 1
- 1
src/Gist/Controller/ViewController.php 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;


Loading…
Cancel
Save