From 381184ae0fed7ad4fd87e795663c730138b2402a Mon Sep 17 00:00:00 2001 From: nelsonlaquet Date: Sun, 1 Sep 2013 14:08:28 -0500 Subject: [PATCH] Fixed image caching issue --- app/controllers/ImagesController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/ImagesController.php b/app/controllers/ImagesController.php index e08dcd92..8aae15b9 100644 --- a/app/controllers/ImagesController.php +++ b/app/controllers/ImagesController.php @@ -29,8 +29,8 @@ $lastModified = filemtime($filename); - header('Last-Modified: ' . $lastModified); - header('Cache-Control: max-age=' . (60 * 60 * 24 * 7)); + $response->header('Last-Modified', $lastModified); + $response->header('Cache-Control', 'max-age=' . (60 * 60 * 24 * 7)); return $response; }