This morning I discovered that once you click on the download link, the file will download, but you can not go back to the website until your download is complete.
The apache server is not limiting the number of connections per IP (it's set at 50 right now)
Here is the main part of the code I'm using. Everything works and downloads great.
Code: Select all
header("Pragma: public");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Cache-Control: private",false);
header('Content-Type: ' . $fileDownloader->mime_get_type($file));
header('Content-Disposition: attachment; filename="' . $v_name . '"');
header("Content-Transfer-Encoding: binary\n");
header("Content-Length: ". filesize($file));
readfile($file);Once the download is complete or canceled, the page loads no problem.
Do you guys think this is a header problem?