public function onResponse(ResponseEvent
$event): void
{ $response =
$event->
getResponse();
/** @var list<string> $scopes */
$scopes =
$event->
getRequest()->attributes->
get(PlatformRequest::ATTRIBUTE_ROUTE_SCOPE,
[]);
if (!\
in_array(StorefrontRouteScope::ID,
$scopes, true
) && !
$response instanceof StorefrontResponse
) { return;
} $this->
manipulateStorefrontHeader($event->
getRequest(),
$response);
} private function manipulateStorefrontHeader(Request
$request, Response
$response): void
{ $this->
removeHeaders($response);
$this->
addNoStoreHeader($request,
$response);
} private function removeHeaders(Response
$response): void
{ foreach (self::REMOVAL_HEADERS
as $headerKey) {