Skip to content

Back Forward Cache Is Not Working #2631

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

    ⚡️ enhancementimprovement over an existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions