// Do not call any listeners in case of a cache hit.
// This ensures identical behavior as if you had a separate
// reverse caching proxy such as Varnish and the like.
if ($this->options
['terminate_on_cache_hit'
]) { trigger_deprecation('symfony/http-kernel', '6.2', 'Setting "terminate_on_cache_hit" to "true" is deprecated and will be changed to "false" in Symfony 7.0.'
);
} elseif (\
in_array('fresh',
$this->traces
[$this->
getTraceKey($request)] ??
[], true
)) { return;
} if ($this->
getKernel() instanceof TerminableInterface
) { $this->
getKernel()->
terminate($request,
$response);
} } /**
* Forwards the Request to the backend without storing the Response in the cache.
*
* @param bool $catch Whether to process exceptions
*/
protected function pass(Request
$request, bool
$catch = false
): Response
{ $this->
record($request, 'pass'
);