开发者

Error when trying to download and open a PDF

开发者 https://www.devze.com 2022-12-09 05:36 出处:网络
I was getting the next error while downloading a PDF in Internet Explorer 6. The sy开发者_开发问答stem tried to open the downloaded file automatically but I was getting:

I was getting the next error while downloading a PDF in Internet Explorer 6. The sy开发者_开发问答stem tried to open the downloaded file automatically but I was getting:

"There was an error opening this document. This cannot be found"


This happens when IE for some reason decides the content is not cacheable - it downloads the file, immediately deletes it, and then tries to open the file that was just deleted.

I had the same problem when mod_rewrite added a "Vary: Host" header. As you discovered, making sure the content is cacheable resolves the problem. In our case, I simply suppressed that Vary header.

0

精彩评论

暂无评论...
验证码 换一张
取 消