public function isPageCacheable()
    {
        $result = false;
        $pragma = $this->response->getHeader('pragma');

        if ($pragma) {
            $result = $pragma->getFieldValue() === 'cache';
        }

        return $result;
    }
public function isPageCacheable()
    {
        $result = false;
        $pragma = $this->response->getHeader('pragma');

        if ($pragma) {
            $result = $pragma->getFieldValue() === 'cache';
        }

        return $result;
    }
public function isPageCacheable ( ) { $ result = false ; $ pragma = $ this -> response -> getHeader ( 'pragma' ) ; if ( $ pragma ) { $ result = $ pragma -> getFieldValue ( ) === 'cache' ; } return $ result ; }
Check if current page is cacheable

@return bool
Check if current page is cacheable