php - Issue: Images Cached on Server? -
i have seen error seems extremely weird me.
on browser, above link shows 8.4 mb download file size
while 1 shows 15.3 mb download file size.
i want understand if server caches in manner, because had hard disk replaced have installed browsers on fresh os, still shows old filesize (and when download it, half of corrupt-gray color).
download.php on 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 using javascript date function file afresh server. current issue resolved, trying understand happening behind scene.
if unable reproduce issue, issue on computer specifically? have @ least 1 person whom know facing same scenario.
thanks!
Comments
Post a Comment