We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c9dd5e commit 22607beCopy full SHA for 22607be
src/CacheProvider.php
@@ -35,7 +35,7 @@ public function allowCache(ResponseInterface $response, $type = 'private', $maxA
35
throw new InvalidArgumentException('Invalid Cache-Control type. Must be "public" or "private".');
36
}
37
$headerValue = $type;
38
- if ($maxAge) {
+ if ($maxAge || is_integer($maxAge)) {
39
if (!is_integer($maxAge)) {
40
$maxAge = strtotime($maxAge);
41
0 commit comments