public function __construct(array
$contentTypes =
['text/html', 'text/xml', 'application/xhtml+xml', 'application/xml'
]) { $this->contentTypes =
$contentTypes;
} /**
* Returns a new cache strategy instance.
*/
public function createCacheStrategy(): ResponseCacheStrategyInterface
{ return new ResponseCacheStrategy();
} public function hasSurrogateCapability(Request
$request): bool
{ if (null ===
$value =
$request->headers->
get('Surrogate-Capability'
)) { return false;
} return str_contains($value,
sprintf('%s/1.0',
strtoupper($this->
getName())));
}