function AbstractSurrogate::generateBodyEvalBoundary
2 calls to AbstractSurrogate::generateBodyEvalBoundary()
- Esi::process in vendor/
symfony/ http-kernel/ HttpCache/ Esi.php - Replaces a Response Surrogate tags with the included resource content.
- Ssi::process in vendor/
symfony/ http-kernel/ HttpCache/ Ssi.php - Replaces a Response Surrogate tags with the included resource content.
File
-
vendor/
symfony/ http-kernel/ HttpCache/ AbstractSurrogate.php, line 117
Class
- AbstractSurrogate
- Abstract class implementing Surrogate capabilities to Request and Response instances.
Namespace
Symfony\Component\HttpKernel\HttpCacheCode
protected static function generateBodyEvalBoundary() : string {
static $cookie;
$cookie = hash('xxh128', $cookie ?? ($cookie = random_bytes(16)), true);
$boundary = base64_encode($cookie);
\assert(HttpCache::BODY_EVAL_BOUNDARY_LENGTH === \strlen($boundary));
return $boundary;
}