ITeye博客

在IE6下打开PDF 提示 无法找到文件的问题

dingdingfm · 2012-06-25 15:33 · 在IE6下打开PDF 提示 无法找到文件的问题 · Web前端 · Markdown

错误提示:"There was an error opening this document. This file cannot be found." 因为上面的问题未出现在firefox & maxthon等浏览器下面。 首先想到的是程序中缓存的问题,因为下载的时候采用的输出流的方式,故要看header()相关的头信息。

解决方案参考:http://discuss.joyent.com/viewtopic.php?pid=123697

header("Pragma: public"); header("Expires: 0"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header("Cache-Control: public"); header("Content-Description: File Transfer");

或

header("Cache-Control: must-revalidate, post-check=0, pre-check=0");

原文引用:http://blog.csdn.net/bjbs_270/article/details/2098752

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。