Added no-cache header

This prevents Varnish from caching the captcha image
This commit is contained in:
Hannes Giesenow 2014-08-27 12:29:12 +02:00
parent bd208c45a8
commit dc3e0c6495

View File

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