Hi!

Below is fragment of my bootstrap file
in which I enable gzip compression for all pages.

It works fine unless I start caching pages via Zend_Cache_Frontend_Page.
How should I enable gzip compression for cached pages too?

    /**
     * Send response to the browser
     * @access public static
     * @param  Zend_Controller_Response_Http $response
     * @return null
     */
    public static function sendResponse (Zend_Controller_Response_Http
$response)
    {
        $response->setHeader('Content-Type', 'text/html; charset=UTF-8');

        // gzip compression
            $response->setHeader( 'Accept-encoding', 'gzip,deflate');
            ob_start("ob_gzhandler");

        $response->sendResponse();
    }

-- 
regards
takeshin
-- 
View this message in context: 
http://www.nabble.com/Zend_Cache-pages%2Bgzip-tp23359165p23359165.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to