Is there a library or good documentation somewhere on the best way to reliably deliver documents in a users browser regardless of OS and browser. I'm mainly looking at PDF, office (2003 & 2007) and scanned images (.tiff) It seems that you always have to set different headers depending on the browser and the type of document being delivered. Right now:
header("Content-Type: $type");
header("Content-Disposition: inline; filename=$name");
header("Accept-Ranges: bytes");
header("Content-Length: $size");
header("Expires: 0");
header("Cache-Control: private");
Seems to work most often for IE but not always for FF. Any help/direction would be great