In Chrome M146, we plan to enable the back/forward cache (BFCache) for pages that use Shared Workers.
Previously, the usage of Shared Workers blocked pages from entering BFCache. We have been experimenting with removing this restriction, and we are now ready to enable this behavior by default.
With this change, pages holding a Shared Worker connection will be eligible for BFCache. However, please be aware of the following eviction behaviors:
- Message from Worker: If a page in BFCache receives a message from a Shared Worker, the page will be evicted.
- All connections cached: If all pages connected to a Shared Worker enter BFCache, those pages will be evicted because the Shared Worker is no longer actively needed.