Added no-cache header
This prevents Varnish from caching the captcha image
This commit is contained in:
parent
bd208c45a8
commit
dc3e0c6495
|
@ -53,6 +53,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');
|
||||||
|
|
||||||
return $response;
|
return $response;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue