Skip to content

Commit 1d78198

Browse files
author
Nathan Memmott
committed
Add BFCache section to multi reader writer proposal
Adds a section to the proposal to explain interaction with the BFCache.
1 parent bd6ef5a commit 1d78198

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

proposals/MultipleReadersWriters.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,11 @@ childAccessHandle.close();
225225
await parentHandle.remove(); // successful
226226
```
227227

228+
### Interactions with BFCache
229+
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.
230+
231+
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.
232+
228233
## Alternatives Considered
229234

230235
### Not Locking File Entry

0 commit comments

Comments
 (0)