Thanks Adam! Using ob_start("ob_gzhandler"); in my beforeFilter worked
great.
On Jan 4, 6:41 am, Adam Royle wrote:
> If you're sending unique data for each request, I wouldn't bother
> using the MediaView. Just output data in your views and set some
> custom headers.
>
> You can also find out ab
If you're sending unique data for each request, I wouldn't bother
using the MediaView. Just output data in your views and set some
custom headers.
You can also find out about an easier way to gzip output in cakephp
here:
http://debuggable.com/posts/issues-with-output-buffering-in-cakephp:480f4dd
Hi,
I want to return unique compressed XML for each user request.
Something like this in the controller:
public function download()
{
$filename = 'some_temporary_file_name.gz';
$this->view = 'Media';
$params = array(
'id' => $filename,
'name' => 'some_temp