app/code/community/Nexcessnet/Turpentine/controllers/Varnish/ManagementController.php
public function getConfigAction() {
        $cfgr = Mage::getModel('turpentine/varnish_admin')
            ->getConfigurator();
        if (is_null($cfgr)) {
            $this->_getSession()->addError($this->__('Failed to load configurator'));
            $this->_redirect('*/cache');
        } else {
            $vcl = $cfgr->generate(
                Mage::helper('turpentine')->shouldStripVclWhitespace('download') );
            $this->getResponse()
                ->setHttpResponseCode(200)
                ->setHeader('Content-Type', 'text/plain', true)
                ->setHeader('Content-Length', strlen($vcl))
                ->setHeader('Content-Disposition',
                    'attachment; filename=default.vcl')
                ->setBody($vcl);
            return $this;
        }
    }
public function getConfigAction() {
        $cfgr = Mage::getModel('turpentine/varnish_admin')
            ->getConfigurator();
        if (is_null($cfgr)) {
            $this->_getSession()->addError($this->__('Failed to load configurator'));
            $this->_redirect('*/cache');
        } else {
            $vcl = $cfgr->generate(
                Mage::helper('turpentine')->shouldStripVclWhitespace('download') );
            $this->getResponse()
                ->setHttpResponseCode(200)
                ->setHeader('Content-Type', 'text/plain', true)
                ->setHeader('Content-Length', strlen($vcl))
                ->setHeader('Content-Disposition',
                    'attachment; filename=default.vcl')
                ->setBody($vcl);
            return $this;
        }
    }
public function getConfigAction ( ) { $ cfgr = Mage :: getModel ( 'turpentine/varnish_admin' ) -> getConfigurator ( ) ; if ( is_null ( $ cfgr ) ) { $ this -> _getSession ( ) -> addError ( $ this -> __ ( 'Failed to load configurator' ) ) ; $ this -> _redirect ( '*/cache' ) ; } else { $ vcl = $ cfgr -> generate ( Mage :: helper ( 'turpentine' ) -> shouldStripVclWhitespace ( 'download' ) ) ; $ this -> getResponse ( ) -> setHttpResponseCode ( 200 ) -> setHeader ( 'Content-Type' , 'text/plain' , true ) -> setHeader ( 'Content-Length' , strlen ( $ vcl ) ) -> setHeader ( 'Content-Disposition' , 'attachment; filename=default.vcl' ) -> setBody ( $ vcl ) ; return $ this ; } }
Present the generated config for download

@return $this
Present the generated config for download