Skip to content

Back Forward Cache Is Not Working #2631

@avtomonov

Description

@avtomonov

Reproduction

/

Steps to reproduce the bug

dev tools chrome -> application -> Back-forward cache -> test = Internal error IgnoreEventAndEvict

Open console -> getEventListeners(document) -> visibilitychange

This listener document.addEventListener("visibilitychange", beforeUnloadListener) from the file (node_modules/vue-router/dist/vue-router.js ), does not allow you to use bfcache

if you delete it, everything works
getEventListeners(document).visibilitychange?.forEach(listener =>
document.removeEventListener('visibilitychange', listener.listener)
)

Expected behavior

add it only if scrollBehavior parameters are added

Actual behavior

it is always added

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions