src/Infrastructure/DataTransformers/JsonEventDataTransformer.php 1 location
|
@@ 52-56 (lines=5) @@
|
| 49 |
|
); |
| 50 |
|
|
| 51 |
|
// set infinite cache if page is complete |
| 52 |
|
if ($maxPerPage === $pageCount) { |
| 53 |
|
$jsonResponse |
| 54 |
|
->setMaxAge(60 * 60 * 24 * 365) |
| 55 |
|
->setSharedMaxAge(60 * 60 * 24 * 365); |
| 56 |
|
} |
| 57 |
|
|
| 58 |
|
return $jsonResponse; |
| 59 |
|
} |
src/Infrastructure/DataTransformers/XmlEventDataTransformer.php 1 location
|
@@ 54-58 (lines=5) @@
|
| 51 |
|
$response->setCharset('utf-8'); |
| 52 |
|
|
| 53 |
|
// set infinite cache if page is complete |
| 54 |
|
if ($maxPerPage === $pageCount) { |
| 55 |
|
$response |
| 56 |
|
->setMaxAge(60 * 60 * 24 * 365) |
| 57 |
|
->setSharedMaxAge(60 * 60 * 24 * 365); |
| 58 |
|
} |
| 59 |
|
|
| 60 |
|
return $response; |
| 61 |
|
} |
src/Infrastructure/DataTransformers/YamlEventDataTransformer.php 1 location
|
@@ 50-54 (lines=5) @@
|
| 47 |
|
); |
| 48 |
|
|
| 49 |
|
// set infinite cache if page is complete |
| 50 |
|
if ($maxPerPage === $pageCount) { |
| 51 |
|
$response |
| 52 |
|
->setMaxAge(60 * 60 * 24 * 365) |
| 53 |
|
->setSharedMaxAge(60 * 60 * 24 * 365); |
| 54 |
|
} |
| 55 |
|
|
| 56 |
|
$response->headers->set('Content-type', 'text/yaml'); |
| 57 |
|
$response->setCharset('utf-8'); |