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

most resource files cannot be found when the browser is opened for the first time after redeploy #14591

Closed
KahrLu opened this issue Aug 15, 2022 · 2 comments

Comments

@KahrLu
Copy link

KahrLu commented Aug 15, 2022

Environment

k8s+docker

Reproduction

k8s+docker

Describe the bug

I am using nuxt with SSR inside a Docker container.
Whenever I build my project for production, it generates some random names for js file chunks.
This causes some issues because of the browser's cache, which tries to load not existing js files.
Because these files no longer exist, I am getting a lot of not found errors for js files built in the previous deployment.

I found same issue other people had asked in stackoverflow:
https://stackoverflow.com/questions/72314014/how-to-make-fixed-filenames-for-nuxt-build-in-production
but the answer will bring another problem, broswer cache.
Do we have a standard solution to solve this issue?

Additional context

No response

Logs

No response

@danielroe
Copy link
Member

let's track in #14507

@danielroe danielroe closed this as not planned Won't fix, can't repro, duplicate, stale Aug 15, 2022
@pi0
Copy link
Member

pi0 commented Aug 15, 2022

Moved to #14594 for generic fix.

@danielroe danielroe added the 3.x label Jan 19, 2023
@danielroe danielroe transferred this issue from nuxt/framework Jan 19, 2023
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

3 participants