header('Content-Description: File Transfer');
header('Content-Transfer-Encoding: binary');
header('Content-Type: application/epub+zip');
header('Content-Length: '.filesize($file));
header('Content-Disposition: attachment; filename="'.$filename.'"');
// force to disable caching
header("Cache-Control: no-cache, no-store, max-age=0, must-revalidate"); // HTTP/1.1
header("Pragma: no-cache"); // For old clients http/1.0
header("Expires: -1"); // ensure that clients immediately treat this response as stale and avoid caching
header("X-XSS-Protection: 1; mode=block");
header('Content-Description: File Transfer');
header('Content-Transfer-Encoding: binary');
header('Content-Type: application/epub+zip');
header('Content-Length: '.filesize($file));
header('Content-Disposition: attachment; filename="'.$filename.'"');
// force to disable caching
header("Cache-Control: no-cache, no-store, max-age=0, must-revalidate"); // HTTP/1.1
header("Pragma: no-cache"); // For old clients http/1.0
header("Expires: -1"); // ensure that clients immediately treat this response as stale and avoid caching
header("X-XSS-Protection: 1; mode=block");
и это не обязательно ссылка.