concrete/src/Cache/Page/PageCache.php
public function deliver(PageCacheRecord $record)
    {
        $response = new Response();
        $headers = [];
        if (defined('APP_CHARSET')) {
            $headers['Content-Type'] = 'text/html; charset=' . APP_CHARSET;
        }
        $headers = array_merge($headers, $record->getCacheRecordHeaders());

        $response->headers->add($headers);
        $response->setContent($record->getCacheRecordContent());

        return $response;
    }
public function deliver(PageCacheRecord $record)
    {
        $response = new Response();
        $headers = [];
        if (defined('APP_CHARSET')) {
            $headers['Content-Type'] = 'text/html; charset=' . APP_CHARSET;
        }
        $headers = array_merge($headers, $record->getCacheRecordHeaders());

        $response->headers->add($headers);
        $response->setContent($record->getCacheRecordContent());

        return $response;
    }
public function deliver ( PageCacheRecord $ record ) { $ response = new Response ( ) ; $ headers = [ ] ; if ( defined ( 'APP_CHARSET' ) ) { $ headers [ 'Content-Type' ] = 'text/html; charset=' . APP_CHARSET ; } $ headers = array_merge ( $ headers , $ record -> getCacheRecordHeaders ( ) ) ; $ response -> headers -> add ( $ headers ) ; $ response -> setContent ( $ record -> getCacheRecordContent ( ) ) ; return $ response ; }
Build a Response object starting from a cached page.

@param \Concrete\Core\Cache\Page\PageCacheRecord $record the cache record containing the cached page data

@return \Concrete\Core\Http\Response
Build a Response object starting from a cached page .