Issue Bug Closed

#86658Exception because of Expire Header from TypoScriptFrontendController::getHttpHeadersForTemporaryContent

Andreas Häfner 10/15/18, 13:00 updated 10/15/18, 14:48

Description

In TYPO3 9.5 probably also in 9.4 an Exception is thrown when TypoScriptFrontendController::applyHttpHeadersToResponse has “tempContent”

The "Expire" => 0 part of the return value in TypoScriptFrontendController::getHttpHeadersForTemporaryContent causes, that later in TypoScriptFrontendController::applyHttpHeadersToResponse the call of \TYPO3\CMS\Core\Http\Message::withHeader throws Exception 1436717266 because
the header value is not a string.

Solution would be to return Expire as string
@‘Expire’ => ‘0’@

Reviews 1