Sobald der Download nun unter IE geöffnet wird erscheint wie gewohnt das Fenster zum direkten Öffnen oder Speichern.
Ist der Download nun zum Beispiel ein PDF-Dokument, kann ich es abspeichern und später ganz normal und ohne Fehler ansehen. Öffne ich den Download (in diesem Fall das PDF) nun direkt, dann öffnet sich zwar der Adobe Reader, bricht aber dann mit folgender Fehlermeldung ab:
Datei existiert nicht
Wie gesagt „Speichern unter…“ geht, nur das direkte „Öffnen“ funkt nicht. Hat jemand ne Erklärung?
But in Internet Explorer, whenever I would click the link to downlad, I could only save the file. If I tried opening the file directly, it gave an error about not being able to find the temporary file.
After digging around for a while, I found the solution. You have to set the Cache-Control to private. So I added the following headers (on top/before the others):
And now it works. I had a different Cache-Control setting before, and it wasn’t working. So I’m certain that setting the Cache-Control to private is what fixed it.
The server environment is Apache 1.3.29 with PHP 4.3.8 running over mod_ssl and using PHP sessions.
Hope this helps someone!
ende
aber am besten du liest selber mal nach, bei obigem link.