Skip to content

Commit a3ffec1

Browse files
authored
Merge pull request #1 from portier/fixCacheControl
Fix: Cache-Control can be Array
2 parents 5f69066 + 790540e commit a3ffec1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AbstractStore.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function fetch($url)
6565
if ($res->hasHeader('Cache-Control')) {
6666
if (preg_match(
6767
'/max-age\s*=\s*(\d+)/',
68-
$res->getHeader('Cache-Control'),
68+
$res->getHeaderLine('Cache-Control'),
6969
$matches
7070
)) {
7171
$ttl = intval($matches[1]);

0 commit comments

Comments
 (0)