Closed yogeshsaroya closed 1 year ago
@mk-j Please help
Hi yogeshsaroya!
I use this code and it works fine
$filecontent=$writer->writeToString();
header('Content-Description: File Transfer');
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename='.XLSXWriter::sanitize_filename($filename).'');
header('Expires: 0');
header('Cache-Control: must-revalidate');
header('Pragma: public');
header('Content-Length: ' . strlen($filecontent));
echo $filecontent;
exit;
@mk-j
Hi I am using this code but its using cache. how to fix cache ?