It writes, than resets pointer to the beginning, and tries to read.
Can't read and write to file without --vfs-cache-mode >= minimal
Which is expected, as per doc.
Okay, I hoped there were a way to commit cached changes on close.
Thank you for your help!