Skip to content

Commit

Permalink
Active code for TYPO3 >= 12
Browse files Browse the repository at this point in the history
  • Loading branch information
lochmueller committed Mar 20, 2024
1 parent d64974f commit d823320
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Classes/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit d823320

Please sign in to comment.