Add Content-Disposition filename header
This commit is contained in:
parent
1696f97b80
commit
7b6ec52d5e
@ -56,6 +56,7 @@ $ts = gmdate("D, d M Y H:i:s", time() + $seconds_to_cache) . " GMT";
|
||||
header("Expires: $ts");
|
||||
header("Pragma: cache");
|
||||
header("Cache-Control: max-age=$seconds_to_cache");
|
||||
header("Content-Disposition: filename=\"" . pathinfo($filepath)['basename'] . "\"");
|
||||
|
||||
ob_end_flush();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user