Apparently IE (including IE7) is retarded when it comes to live downloads from a database. This problem manifests itself in particular when it comes to downloading PDFs. That means when you try to load a pdf out of a database with the following incredibly common code snippet:
header("Content-length: $size"); header("Content-type: $type"); header("Content-Disposition: attachment; filename=$name");
you can “Save Target As” with IE but not actually open it directly from a link. It works fine in Firefox. After much obnoxious tinkering and searching, I discovered that adding:
header("Cache-control: private"); header("Pragma: public");
just makes it magically work.
reddit