I posted the same issue a few weeks ago and supposed to change the code in db_write_blob. But doing the ns_returnfile immediately in cr_write_content is probably the better solution. Anyway i think its good to do this change as like Jeff mentioned, attention should be payed to if-modified-since headers.