diff --git a/Classes/Configuration.php b/Classes/Configuration.php index 1a497993040..19c29074af7 100644 --- a/Classes/Configuration.php +++ b/Classes/Configuration.php @@ -192,10 +192,9 @@ protected function registerHttpPushServices(): self protected function adjustSystemSettings(): self { - if ($this->typo3version->getMajorVersion() >= 12) { - // aim for cacheable frontend responses when using TYPO3's `Content-Security-Policy` behavior - $GLOBALS['TYPO3_CONF_VARS']['FE']['contentSecurityPolicy']['preferCacheableResponse'] = true; - } + // aim for cacheable frontend responses when using TYPO3's `Content-Security-Policy` behavior + $GLOBALS['TYPO3_CONF_VARS']['FE']['contentSecurityPolicy']['preferCacheableResponse'] = true; + return $this; } }