【发布时间】:2014-02-24 13:29:59
【问题描述】:
当我第二次启动应用程序尝试进行新下载时,会下载之前下载的内容数据!这是代码:
$output = RP_MAIN . 'docbook/data/myfile.pdf';
header('Content-Type: application/x-download');
header('Content-Disposition: attachment; filename="'.'manuel.pdf'.'"');
header('Cache-Control: private, max-age=0, must-revalidate');
header('Pragma: public');
ob_clean();
readfile($output);
那么如何在下载前清除下载缓存呢?
【问题讨论】:
标签: php html http-headers download