Make sure the get and restore the file offset when conputing the ETag. Be defensive when opening the file.