diff --git a/parsecsv.lib.php b/parsecsv.lib.php index c405f03..b18d95c 100644 --- a/parsecsv.lib.php +++ b/parsecsv.lib.php @@ -459,7 +459,12 @@ class parseCSV { if ( $filename !== null ) { header('Content-type: application/csv'); - header('Content-Disposition: attachment; filename="'.$filename.'"'); + header('Content-Length: '.strlen($data)); + header('Cache-Control: no-cache, must-revalidate'); + header('Pragma: no-cache'); + header('Expires: 0'); + header('Content-Disposition: attachment; filename="'.$filename.'"; modification-date="'.date('r').'";'); + echo $data; }