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:
Thanks Adam! Using ob_start(ob_gzhandler); in my beforeFilter worked
great.
On Jan 4, 6:41 am, Adam Royle a...@sleekgeek.com.au 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
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' =