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:
parent
dc3e0c6495
commit
459901319c
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue