public function Esi::hasSurrogateCapability in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-kernel/HttpCache/Esi.php \Symfony\Component\HttpKernel\HttpCache\Esi::hasSurrogateCapability()
Checks that at least one surrogate has ESI/1.0 capability.
Parameters
Request $request A Request instance:
Return value
bool true if one surrogate has ESI/1.0 capability, false otherwise
Overrides SurrogateInterface::hasSurrogateCapability
1 call to Esi::hasSurrogateCapability()
- Esi::hasSurrogateEsiCapability in vendor/
symfony/ http-kernel/ HttpCache/ Esi.php - Checks that at least one surrogate has ESI/1.0 capability.
File
- vendor/
symfony/ http-kernel/ HttpCache/ Esi.php, line 70
Class
- Esi
- Esi implements the ESI capabilities to Request and Response instances.
Namespace
Symfony\Component\HttpKernel\HttpCacheCode
public function hasSurrogateCapability(Request $request) {
if (null === ($value = $request->headers
->get('Surrogate-Capability'))) {
return false;
}
return false !== strpos($value, 'ESI/1.0');
}