@@ 99-107 (lines=9) @@ | ||
96 | return; |
|
97 | } |
|
98 | ||
99 | if (null !== $age = $configuration->getSMaxAge()) { |
|
100 | if (!is_numeric($age)) { |
|
101 | $now = microtime(true); |
|
102 | ||
103 | $age = ceil(strtotime($configuration->getSMaxAge(), $now) - $now); |
|
104 | } |
|
105 | ||
106 | $response->setSharedMaxAge($age); |
|
107 | } |
|
108 | ||
109 | if (null !== $age = $configuration->getMaxAge()) { |
|
110 | if (!is_numeric($age)) { |
|
@@ 109-117 (lines=9) @@ | ||
106 | $response->setSharedMaxAge($age); |
|
107 | } |
|
108 | ||
109 | if (null !== $age = $configuration->getMaxAge()) { |
|
110 | if (!is_numeric($age)) { |
|
111 | $now = microtime(true); |
|
112 | ||
113 | $age = ceil(strtotime($configuration->getMaxAge(), $now) - $now); |
|
114 | } |
|
115 | ||
116 | $response->setMaxAge($age); |
|
117 | } |
|
118 | ||
119 | if (null !== $configuration->getExpires()) { |
|
120 | $date = \DateTime::createFromFormat('U', strtotime($configuration->getExpires()), new \DateTimeZone('UTC')); |