if ($exportHelper->createDataFile($compress)) {
header('Pragma: public'); // This is needed for IE8 to download files over https.
header('Content-Type: '.$mime_type);
if ($exportHelper->createDataFile($compress)) {
header('Pragma: public'); // This is needed for IE8 to download files over https.
header('Content-Type: '.$mime_type);