Skip to content

fix: skip dynamic asset prefetch - #1022

Draft
kyui-azusa wants to merge 1 commit into
OpenWebGAL:mainfrom
kyui-azusa:fix/skip-dynamic-asset-prefetch
Draft

fix: skip dynamic asset prefetch#1022
kyui-azusa wants to merge 1 commit into
OpenWebGAL:mainfrom
kyui-azusa:fix/skip-dynamic-asset-prefetch

Conversation

@kyui-azusa

Copy link
Copy Markdown

Summary

  • detect unescaped runtime interpolation in asset URLs before queueing prefetch work
  • skip unresolved dynamic URLs instead of requesting literal paths such as /game/figure/{p_phone}
  • preserve prefetching for ordinary URLs and escaped literal braces

Root cause

Asset prefetch runs while parsing a scene, before runtime variable values are available, so interpolated paths cannot be resolved safely at that point.

Validation

  • yarn webgal:build
  • checked ordinary, interpolated, multiple-segment, and escaped-brace URL cases

Closes #997

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

资源预加载时,没有运行变量插值导致预加载失败问题

1 participant