From 459901319c40fecfaa8017c21ab9be9ace7a6602 Mon Sep 17 00:00:00 2001 From: Hannes Giesenow Date: Wed, 27 Aug 2014 14:34:57 +0200 Subject: [PATCH] HTTP 1.1 equivalent to Pragma: no-cache See http://stackoverflow.com/questions/10314174/difference-between-pragma-and-cache-control-headers for detailed explanation --- Controller/CaptchaController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Controller/CaptchaController.php b/Controller/CaptchaController.php index 8d2fb1c..345e447 100644 --- a/Controller/CaptchaController.php +++ b/Controller/CaptchaController.php @@ -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; }