Complete cached media using Safari-compatible OPFS rename #12
Loading…
Reference in a new issue
No description provided.
Delete branch "codex/safari-cache-rename"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Safari exposes FileSystemFileHandle.move but requires both the destination directory and the new name. The one-argument call failed after downloading all bytes, leaving media partly cached at 100% and preventing books from opening. Pass both arguments and retain the existing copy fallback for browsers without move.
Validation: 55 blob cache tests, TypeScript, and the production build pass. A real Safari dedicated worker reproduced the old TypeError and verified that the corrected OpfsStore rename preserves file bytes and removes the old entry. Temporary verification fixtures were removed before building.