diff --git a/CHANGELOG.md b/CHANGELOG.md index 2f04ec7..55f4ec3 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ All Notable changes to `laravel-responsecache` will be documented in this file +## 1.1.3 - 2015-08-11 + +### Fixed +- Fixed an issue where the cache header could not be set + ## 1.1.2 - 2015-07-22 ### Fixed diff --git a/src/ResponseCache.php b/src/ResponseCache.php index 956349b..e49e923 100644 --- a/src/ResponseCache.php +++ b/src/ResponseCache.php @@ -118,7 +118,7 @@ protected function addCachedHeader(Response $response) { $clonedResponse = clone $response; - $clonedResponse->header('Laravel-reponsecache', 'cached on '.date('Y-m-d H:i:s')); + $clonedResponse->headers->set('Laravel-reponsecache', 'cached on '.date('Y-m-d H:i:s')); return $clonedResponse; }