Error while trying to download and open PDF file

I was getting the following error when downloading a PDF file in Internet Explorer 6. The system tried to open the downloaded file automatically, but I was getting:

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

+2


source to share


1 answer


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



I had the same problem when mod_rewrite added the "Vary: Host" header. As you have found, make sure the cached content fixes the problem. In our case, I just suppressed this Vary header.

+1


source







All Articles