protected function getCacheObject(RequestInterface $request, ResponseInterface $response) { $cacheControl = new KeyValueHttpHeader($response->getHeader('Cache-Control')); if ($cacheControl->has('private')) { return; } return parent::getCacheObject($request, $response); }