content icon indicating copy to clipboard operation
content copied to clipboard

Timestamp in query filenames can break site for current users

Open hecktarzuli opened this issue 2 years ago • 2 comments

Environment

Nuxt 3.5.0 Nuxt Content 2.6.0

Reproduction

Generate a site using Nuxt content, then run generate again. Notice the built query files change even though you did nothing.

Describe the bug

  • You are on a site that uses Nuxt Content, it either was deployed recently, or doesn't get much traffic (so not all files are in the CDN)
  • A new deploy is sent while you are on the site
  • When you go to a new page, the site could break since the query file you needed no longer exists at the origin.

This is likely related to timestamps in the built query files. Are they really needed? The filenames should only change when their content changes.

image image

Additional context

No response

Logs

No response

hecktarzuli avatar May 19 '23 13:05 hecktarzuli

Much bigger problem when scaling to multiple servers.... Are there any updates? How to get rid of the timestamp?

juliangerhards avatar Aug 29 '24 02:08 juliangerhards

@juliangerhards related: https://github.com/nuxt/nuxt/issues/24940#event-12904965854

For us, since we have boat-loads of servers, we just toss our assets into S3 so they are guaranteed to always exist.

hecktarzuli avatar Aug 29 '24 13:08 hecktarzuli

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.

github-actions[bot] avatar Dec 21 '24 03:12 github-actions[bot]

This issue was closed because it has been stalled for 30 days with no activity.

github-actions[bot] avatar Jan 20 '25 03:01 github-actions[bot]