From d823320e534b213750c01f8d0c39a9a6636f8402 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Lochm=C3=BCller?= Date: Wed, 20 Mar 2024 18:54:17 +0100 Subject: [PATCH] Active code for TYPO3 >= 12 --- Classes/Configuration.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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; } }