protected function tryOutputImage()
    {
        if (is_file($this->data_cached_file)) {

            $this->response->addHeader('Last-Modified', gmdate('D, d M Y H:i:s T', filemtime($this->data_cached_file)))
                ->addHeader('Content-Length', filesize($this->data_cached_file))
                ->addHeader('Content-type', mime_content_type($this->data_cached_file))
                ->sendHeaders();

            readfile($this->data_cached_file);
            exit;
        }
    }
protected function tryOutputImage()
    {
        if (is_file($this->data_cached_file)) {

            $this->response->addHeader('Last-Modified', gmdate('D, d M Y H:i:s T', filemtime($this->data_cached_file)))
                ->addHeader('Content-Length', filesize($this->data_cached_file))
                ->addHeader('Content-type', mime_content_type($this->data_cached_file))
                ->sendHeaders();

            readfile($this->data_cached_file);
            exit;
        }
    }
protected function tryOutputImage ( ) { if ( is_file ( $ this -> data_cached_file ) ) { $ this -> response -> addHeader ( 'Last-Modified' , gmdate ( 'D, d M Y H:i:s T' , filemtime ( $ this -> data_cached_file ) ) ) -> addHeader ( 'Content-Length' , filesize ( $ this -> data_cached_file ) ) -> addHeader ( 'Content-type' , mime_content_type ( $ this -> data_cached_file ) ) -> sendHeaders ( ) ; readfile ( $ this -> data_cached_file ) ; exit ; } }
Try to output existing image
Try to output existing image