|
@@ 177-183 (lines=7) @@
|
| 174 |
|
Response $response, |
| 175 |
|
Cache $configuration |
| 176 |
|
) { |
| 177 |
|
if (null !== $age = $configuration->getSMaxAge()) { |
| 178 |
|
if (!is_numeric($age)) { |
| 179 |
|
$age = $this->calculateAge($configuration->getSMaxAge()); |
| 180 |
|
} |
| 181 |
|
|
| 182 |
|
$response->setSharedMaxAge($age); |
| 183 |
|
} |
| 184 |
|
|
| 185 |
|
if (null !== $age = $configuration->getMaxAge()) { |
| 186 |
|
if (!is_numeric($age)) { |
|
@@ 185-191 (lines=7) @@
|
| 182 |
|
$response->setSharedMaxAge($age); |
| 183 |
|
} |
| 184 |
|
|
| 185 |
|
if (null !== $age = $configuration->getMaxAge()) { |
| 186 |
|
if (!is_numeric($age)) { |
| 187 |
|
$age = $this->calculateAge($configuration->getMaxAge()); |
| 188 |
|
} |
| 189 |
|
|
| 190 |
|
$response->setMaxAge($age); |
| 191 |
|
} |
| 192 |
|
|
| 193 |
|
if (null !== $configuration->getExpires()) { |
| 194 |
|
$response->setExpires($this->calculateExpires($configuration)); |