0) { ob_end_clean(); } header('Access-Control-Allow-Origin: *'); header('Cache-Control: no-store, no-cache, must-revalidate, max-age=0'); header('Pragma: no-cache'); header('Content-Type: application/zip'); header('Content-Disposition: attachment; filename="' . $zip . '"'); header('Content-Length: ' . filesize($file)); header('X-GracePress-Download-Url: ' . $download); if ($_SERVER['REQUEST_METHOD'] !== 'HEAD') { readfile($file); }