HTTP 1.1 equivalent to Pragma: no-cache

See http://stackoverflow.com/questions/10314174/difference-between-pragma-and-cache-control-headers for detailed explanation
This commit is contained in:
Hannes Giesenow 2014-08-27 14:34:57 +02:00
parent dc3e0c6495
commit 459901319c
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 = new Response($generator->generate($options));
$response->headers->set('Content-type', 'image/jpeg'); $response->headers->set('Content-type', 'image/jpeg');
$response->headers->set('Pragma', 'no-cache'); $response->headers->set('Pragma', 'no-cache');
$response->headers->set('Cache-Control','no-cache');
return $response; return $response;
} }