without this, remote files are assumed to have size 0 (even if we just downloaded them!) and the range-related code won't run
mentioned in commit 7cf0c18f