eZ\Publish\Core\MVC\Symfony\Cache\Http\LocationAwareStore::generateContentDigest PHP Method

generateContentDigest() protected method

X-Location-Id response header is set in the ViewController.
See also: eZ\Publish\Core\MVC\Symfony\Controller\Content\ViewController::viewLocation()
protected generateContentDigest ( Response $response ) : string
$response Symfony\Component\HttpFoundation\Response
return string
    protected function generateContentDigest(Response $response)
    {
        $digest = parent::generateContentDigest($response);
        if (!$response->headers->has('X-Location-Id')) {
            return $digest;
        }
        return static::LOCATION_CACHE_DIR . "/{$response->headers->get('X-Location-Id')}/{$digest}";
    }