Skip to content

Commit

Permalink
Meta: Add BFCache section to multi reader writer proposal
Browse files Browse the repository at this point in the history
Adds a section to the proposal to explain interaction with the
BFCache.

Co-authored-by: Nathan Memmott <memmott@chromium.org>
  • Loading branch information
nathanmemmott and Nathan Memmott committed Dec 12, 2023
1 parent bd6ef5a commit e2dba25
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions proposals/MultipleReadersWriters.md
Expand Up @@ -225,6 +225,11 @@ childAccessHandle.close();
await parentHandle.remove(); // successful
```

### Interactions with BFCache
A page may still hold a file system lock when it enters the BFCache. A fully active page could then be made aware of a BFCached page if there is contention between locks they hold.

To keep BFCache enabled when a site uses the File System Access API, a BFCached page must be evicted on locking contention with a fully active page (whether or not it is of the same origin). Otherwise, a file system lock held by a page will not affect the page's eligibility for BFCache. This allows the site to have the performance gains of BFCache up until it would be made aware of the BFCache.

## Alternatives Considered

### Not Locking File Entry
Expand Down

0 comments on commit e2dba25

Please sign in to comment.