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

Using nuxt-link-locale resulted in Chinese URL causing useFetch() cache failure issue #3290

Open
HouLiXieBuRou opened this issue Dec 31, 2024 · 0 comments

Comments

@HouLiXieBuRou
Copy link

Environment

Please run npm install express && node a.js first,This will start a service that provides the current timestamp.
Then run npx nuxi generate && npx serve .output/public/ to launch the webpage

Reproduction

https://stackblitz.com/edit/bobbiegoede-nuxt-i18n-starter-fbpwznqc?file=pages%2Findex.vue

Describe the bug

When using nuxt-link-locale,if a Chinese URL appears, it will cause the cache of useFetch to become invalid. That is to say, even if the webpage is statically compiled and deployed using npx nuxi generate, the data interface will still be accessed when the user enters。This has led to cross domain issues in my project。
I have already tried it in a pure nuxt project (excluding nuxt-i18n), and nuxt-link does not have this issue.
In addition, when using stackitz to generate the minimum environment, the simulated webpage behavior is slightly different from my local test. I won't go into detail now. If you encounter any issues that cannot be replicated, I will explain them in detail

Additional context

No response

Logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant