在我的雇主Web服务器上,我们有200多个PHP应用程序使用这种代码来允许下载文件:
header('Content-Disposition: attachment; filename="file.pdf"'); header('Expires: 0'); header('Pragma: no-cache');
它在旧的服务器上运行良好(Debian Lenny,PHP 5.2,Apache 2.2.9),但在新的IE8(Debian Squeeze,PHP 5.2,Apache 2.2.16)上失败。 其他浏览器是罚款。 我们只通过HTTPS访问文件,而不是HTTP。 我们没有发现conf文件有任何区别,但是用private来代替no-cache来纠正IE的问题。 我们在哪里可以理解差异在哪里?