set content-length headers for downloading large files