ZF-8843: Whitespace in gzencoded cached pages

Description

I created simple application resource, which uses php's gzencode function to compress response body.

Everything works fine, but when I enable Zend_Cache_Page, I get strange characters before DOCTYPE:


�������X��

and after

Comments

You probably just need to add, the frontend options:

'memorize_headers' => array('Content-Encoding', 'Vary', 'Content-Length')

possibly other headers too, Content-Language and Content-Type are also quite common in the frontend options