Only write predata if we're not in a Range Request, or if the range request start is 0
Add some tests