Skip to content

Connecting to socket.io forces browsers to clear page cache #1660

Closed
@yujiosaka

Description

@yujiosaka

Page cache (bfcache) retains the entire page when go back and forward.
It is important especially for Mobile Safari and Android browser to give smooth UX.

However, connecting to socket.io automatically disables page cache.

I created a sample app and wrote details on it's readme.
https://github.com/yujiosaka/socket.io-cache-example

I wrote workaround to this problem, but is there a better way avoiding this problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions