Replies: 2 comments 5 replies
-
That sounds reasonable, yes.
Most likely that, after a new deploy, current visitors still request older static assets of your site
Save them e.g. via CDN and cache them on the server forever. |
Beta Was this translation helpful? Give feedback.
-
Hello. The problem seems to be resolved by adding hash to the query string instead of the file name in the rollupOptions of config. But why does nuxt add hash to file names by default? |
Beta Was this translation helpful? Give feedback.
-
Hello everyone. We have a website deployed and are getting thousands of reports that assets cannot be found. The assets are JavaScript chunks, CSS, etc. The site works with no issues, however, the server instance is throwing errors which we pinned down to Nitro server code: My hypothesis is that for some reason the server is looking for older hashed files which wouldn't exist since every time we deploy, new hashed files are uploaded.
My question is 2 fold.
Could someone possibly explain what is happening?
What are some steps we could take to possibly mitigate these errors.
Beta Was this translation helpful? Give feedback.
All reactions