diff --git a/src/EventListener/TagListener.php b/src/EventListener/TagListener.php index d4daba99..e877d611 100644 --- a/src/EventListener/TagListener.php +++ b/src/EventListener/TagListener.php @@ -69,7 +69,6 @@ public function onKernelResponse(ResponseEvent $event): void if ($this->cacheableRule->matches($request, $response)) { // For safe requests (GET and HEAD), set cache tags on response $this->symfonyResponseTagger->addTags($tags); - // BC for symfony < 5.3 if ($event->isMainRequest()) { $this->symfonyResponseTagger->tagSymfonyResponse($response); }