Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] bfcache Issue #767

Open
1 task done
BrocksiNet opened this issue Mar 19, 2024 · 2 comments
Open
1 task done

[BUG] bfcache Issue #767

BrocksiNet opened this issue Mar 19, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@BrocksiNet
Copy link
Collaborator

BrocksiNet commented Mar 19, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

That's the problem
image

That could be a solution
nuxt/nuxt#23667

Expected Behavior

The Issue is not shown anymore in Lighthouse for the demo-store.
The demo-store works like before without any errors.

Steps To Reproduce

No response

Environment

No response

Anything else?

Another related #539

@BrocksiNet BrocksiNet added the bug Something isn't working label Mar 19, 2024
@BrocksiNet BrocksiNet changed the title [BUG] Solve bfcache Issue [BUG] bfcache Issue Mar 19, 2024
@InstantlyMoist
Copy link

Currently having the same issue, no dependencies seem to interfere with it.

@BrocksiNet
Copy link
Collaborator Author

BrocksiNet commented Mar 22, 2024

I was researching a lot today about that issue. 🔍

I assume that the issue comes from nuxt i18n module.

So I created a empty nuxt/vite project with that command:
pnpm dlx nuxi@latest init <project-name>

Testing this in preview mode is important because Vite is opening a WebSocket in dev mode, which can also cause an issue with bfcache.

So the steps for testing are:

  1. pnpm build
  2. pnpm preview
  3. Open the Page in a Chrome Browser
  4. Open Dev Tools -> Application -> Back/Forward Cache -> Click on Test Button

Result:

  • Blank Nuxt/Vite Project -> No bfcache Issue ✔️
  • Blank Nuxt/Vite Project + i18n module -> bfcache Issue ❌

Somehow I assume it has something to do with detectBrowserLanguage function. But not sure about that. 😕

Created an Issue here: nuxt-modules/i18n#2876

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Developer Backlog
Development

No branches or pull requests

2 participants