Merge pull request #103 from kuborgh/cache

HTTP 1.1 equivalent to Pragma: no-cache
This commit is contained in:
Grégoire Passault 2014-08-27 16:12:32 +02:00
commit 62e44cd388
1 changed files with 1 additions and 0 deletions

View File

@ -54,6 +54,7 @@ class CaptchaController extends Controller
$response = new Response($generator->generate($options));
$response->headers->set('Content-type', 'image/jpeg');
$response->headers->set('Pragma', 'no-cache');
$response->headers->set('Cache-Control','no-cache');
return $response;
}