For some reason one installation of Moodle 1.9.3+ has a problem that file.php returns a blank 0 byte file sometimes, even the apache log shows 0 bytes were returned. Another moodle installation works OK with the same htm files.
What could be causing this? Problematic files are just usual htm files - bug occurs with links like this:
http://server/file.php/164/moddata/scorm/4/data/msg.htm
(The problematic moodle was upgraded from 1.8 version earlier)