Psr7Middlewares\Middleware\ImageTransformer::getCacheKey PHP Method

getCacheKey() private method

Generates the key used to save the image in cache.
private getCacheKey ( Psr\Http\Message\ServerRequestInterface $request ) : string
$request Psr\Http\Message\ServerRequestInterface
return string
    private function getCacheKey(ServerRequestInterface $request)
    {
        $id = base64_encode((string) $request->getUri());
        $hints = $this->getClientHints($request);
        if ($hints) {
            $id .= '.' . base64_encode(json_encode($hints));
        }
        return $id;
    }