I have seen an error which seems extremely weird to me.
On my browser, the above link shows 8.4 MB download file size
While this one shows 15.3 MB download file size.
I want to understand if the Server itself caches in some manner, because I had my Hard Disk Replaced recently so I have installed browsers on fresh OS, but it still shows the old filesize (and when you download it, half of it is corrupt-gray color).
download.php on the server has these Headers set:
header('Expires: 0');
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Last-Modified: '.gmdate ('D, d M Y H:i:s', filemtime ($file_name)).' GMT');
header('Cache-Control: private',false);
header('Content-Type: image/jpg');
header('Content-Disposition: attachment; filename="'.basename($file_name).'"');
header('Content-Transfer-Encoding: binary');
header('Content-Length: '.filesize($file_name));
I am now using a JavaScript Date Function to get the file afresh from the server. So my current issue is resolved, but I am trying to understand what is happening behind the scene.
If you are unable to reproduce this issue, then what could be the issue on my computer specifically? I have at least one person whom I know facing the same scenario.
Thanks!