Add Content-Disposition filename header

This commit is contained in:
Skylar Ittner 2021-04-02 15:31:39 -06:00
parent 1696f97b80
commit 7b6ec52d5e

View File

@ -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();