---
title: " 在IE6下打开PDF 提示 无法找到文件的问题 "
author: "dingdingfm"
date: "2012-06-25T15:33:36Z"
tags: []
categories: ["Web前端"]
slug: "ie6-pdf"
draft: false
lastmod: "2012-06-25T15:33:00Z"
id: 1567489
url: "https://dingdingfm.iteye.com/blog/1567489"
---

错误提示："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