public function handle(Request
$request,
$type = HttpKernelInterface::MASTER_REQUEST,
$catch = true
) { $this->
checkSltCookie($request);
$request->headers->
set('Surrogate-Capability', 'shopware="ESI/1.0"'
);
if (str_starts_with($request->
getPathInfo(), '/backend/'
)) { return $this->
pass($request,
$catch);
} if (stripos($request->
getPathInfo(), '/widgets/index/refreshStatistic'
) === 0
) { return $this->
handleCookies($request,
$this->
pass($request,
$catch));
} if (str_starts_with($request->
getPathInfo(), '/captcha/index/rand/'
)) { return $this->
pass($request,
$catch);
} $response = parent::
handle($request,
$type,
$catch);
$response->headers->
remove('cache-control'
);
$response->headers->
addCacheControlDirective('no-cache'
);