Apple Numbers download

I am distributing an Apple Numbers document at http://www.iworkforteachers.com . The link currently directs the user to this php page:

$filename = 'gradebook_1_0.numbers';
header( "Location: $filename");

Should I be using a specific mime type, or is a header location sufficient for this download?

Thanks.

if you are just doing a header location that should be fine as the webserver will sort the right headers for the file you are sending.

however if you were reading the file and outputing it from php then you would have to specify the content type and disposition of the file you are outputing so the browser knows what to do with it.

Thanks. It’s just getting pulled from the filesystem.