SSL IE File Download Problem and Solution

Share

26th January 2010

SSL IE File Download Problem and Solution

We've just installed an SSL certificate for a client whose website has a built in file manager. Each file download is passed through a series of PHP scripts to analyse the origin of the download and so on. To do this the file itself is read through PHP and held in a cache (as far as IE is concerned anyway). When the SSL was installed this system broke with Firefox behaving normally, but IE giving a message indicating that the file could not be found.

The solution was, in the end, quite a simple one thankfully. The header for the downloaded file needed to be changed from

header('Cache-Control: public');

to

header('Cache-Control: private');
header('Pragma: private');

and the job was done.

Other News