diff --git a/Classes/Middleware/CacheHeaders.php b/Classes/Middleware/CacheHeaders.php index 73da7fe..324feb8 100644 --- a/Classes/Middleware/CacheHeaders.php +++ b/Classes/Middleware/CacheHeaders.php @@ -18,14 +18,12 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface $tsfe = $GLOBALS['TSFE'] ?? null; if ($tsfe instanceof TypoScriptFrontendController) { - if ($tsfe->isStaticCacheble()) { - $response = $response->withAddedHeader('X', 'cache'); - } - $tags[] = 'T3'; $tags[] = 'PAGE-' . $tsfe->id; $tags = implode(' ', $tags); + + $response = $response->withAddedHeader('X-TYPO3-caching', $tsfe->isStaticCacheble() ? 'cache' : 'no-cache'); $response = $response->withAddedHeader('X-Tags', $tags); } diff --git a/ext_emconf.php b/ext_emconf.php index 11777c4..f79c527 100644 --- a/ext_emconf.php +++ b/ext_emconf.php @@ -4,7 +4,7 @@ 'title' => 'Cache Purger', 'description' => 'Purge cached URLs within Varnish instances', 'category' => 'misc', - 'version' => '1.0.2', + 'version' => '1.0.3', 'state' => 'stable', 'clearCacheOnLoad' => 0, 'constraints' => [