Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Classes/Generator/HtaccessGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
$contentType = $matches[0];
}

$sendCacheControlHeader = isset($GLOBALS['TSFE']->config['config']['sendCacheHeaders']) ? (bool) $GLOBALS['TSFE']->config['config']['sendCacheHeaders'] : false;
$frontendTypoScript = ($GLOBALS['TYPO3_REQUEST'] ?? null)?->getAttribute('frontend.typoscript');
$sendCacheControlHeader = $frontendTypoScript instanceof FrontendTypoScript && (bool) ($frontendTypoScript->getConfigArray()['sendCacheHeaders'] ?? false);

Check failure on line 35 in Classes/Generator/HtaccessGenerator.php

View workflow job for this annotation

GitHub Actions / build (8.4, 14)

Class SFC\Staticfilecache\Generator\FrontendTypoScript not found.

Check failure on line 35 in Classes/Generator/HtaccessGenerator.php

View workflow job for this annotation

GitHub Actions / build (8.4, 14)

Call to method getConfigArray() on an unknown class SFC\Staticfilecache\Generator\FrontendTypoScript.

Check failure on line 35 in Classes/Generator/HtaccessGenerator.php

View workflow job for this annotation

GitHub Actions / build (8.5, 14)

Class SFC\Staticfilecache\Generator\FrontendTypoScript not found.

Check failure on line 35 in Classes/Generator/HtaccessGenerator.php

View workflow job for this annotation

GitHub Actions / build (8.5, 14)

Call to method getConfigArray() on an unknown class SFC\Staticfilecache\Generator\FrontendTypoScript.

Check failure on line 35 in Classes/Generator/HtaccessGenerator.php

View workflow job for this annotation

GitHub Actions / build (8.3, 14)

Class SFC\Staticfilecache\Generator\FrontendTypoScript not found.

Check failure on line 35 in Classes/Generator/HtaccessGenerator.php

View workflow job for this annotation

GitHub Actions / build (8.3, 14)

Call to method getConfigArray() on an unknown class SFC\Staticfilecache\Generator\FrontendTypoScript.

$variables = [
'contentType' => $contentType,
Expand Down
Loading