diff --git a/Classes/Generator/PhpGenerator.php b/Classes/Generator/PhpGenerator.php index f9543691525..7274f6704f5 100644 --- a/Classes/Generator/PhpGenerator.php +++ b/Classes/Generator/PhpGenerator.php @@ -25,7 +25,7 @@ public function generate(string $entryIdentifier, string $fileName, ResponseInte $accessTimeout = (int) $configuration->get('htaccessTimeout'); $lifetime = $accessTimeout ?: $lifetime; - $headers = $this->getReponseHeaders($response); + $headers = $configuration->getValidHeaders($response->getHeaders(), 'validHtaccessHeaders'); if ($configuration->isBool('debugHeaders')) { $headers['X-SFC-State'] = 'StaticFileCache - via PhpGenerator'; }