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 a9d59c1 commit 3c1dac0Copy full SHA for 3c1dac0
CHANGELOG.md
@@ -1,5 +1,10 @@
1
# Change Log
2
3
+## UNRELEASED
4
+
5
+### Fixed
6
7
+- Cast max age header to integer in order to get valid expiration value.
8
9
## 1.0.0 - 2016-05-05
10
src/CachePlugin.php
@@ -174,7 +174,7 @@ private function getMaxAge(ResponseInterface $response)
174
return $maxAge - ((int) $age);
175
}
176
177
- return $maxAge;
+ return (int) $maxAge;
178
179
180
// check for ttl in the Expires header
0 commit comments