code/libraries/joomlatools/library/dispatcher/response/abstract.php
public function isStreamable()
    {
        $request = $this->getRequest();

        $isPDF        = $this->getContentType() == 'application/pdf';
        $isInline     = !$request->isDownload();
        $isSeekable   = $this->getStream()->isSeekable();

        if(!($isPDF && $isInline) && $isSeekable)
        {
            if($this->_headers->get('Transfer-Encoding') == 'chunked') {
                return true;
            }

            if($this->_headers->get('Accept-Ranges', null) !== 'none') {
                return true;
            };
        }

        return false;
    }
public function isStreamable()
    {
        $request = $this->getRequest();

        $isPDF        = $this->getContentType() == 'application/pdf';
        $isInline     = !$request->isDownload();
        $isSeekable   = $this->getStream()->isSeekable();

        if(!($isPDF && $isInline) && $isSeekable)
        {
            if($this->_headers->get('Transfer-Encoding') == 'chunked') {
                return true;
            }

            if($this->_headers->get('Accept-Ranges', null) !== 'none') {
                return true;
            };
        }

        return false;
    }
public function isStreamable ( ) { $ request = $ this -> getRequest ( ) ; $ isPDF = $ this -> getContentType ( ) == 'application/pdf' ; $ isInline = ! $ request -> isDownload ( ) ; $ isSeekable = $ this -> getStream ( ) -> isSeekable ( ) ; if ( ! ( $ isPDF && $ isInline ) && $ isSeekable ) { if ( $ this -> _headers -> get ( 'Transfer-Encoding' ) == 'chunked' ) { return true ; } if ( $ this -> _headers -> get ( 'Accept-Ranges' , null ) !== 'none' ) { return true ; } ; } return false ; }
Check if the response is streamable

A response is considered streamable, if the Accept-Ranges does not have value 'none' or if the
Transfer-Encoding is set the chunked.

If the request is made for a PDF file that is not attached the response will not be streamable.
The build in PDF viewer in IE and Chrome cannot handle inline rendering of PDF files when the
file is streamed.

@link http://tools.ietf.org/html/rfc2616#section-14.5
@return bool
Check if the response is streamable