Skip to content

fix: ignore cachebust_origin in obj loader cache key#916

Open
LaoChouPro wants to merge 1 commit into
tscircuit:mainfrom
LaoChouPro:fix/global-obj-loader-cache-key
Open

fix: ignore cachebust_origin in obj loader cache key#916
LaoChouPro wants to merge 1 commit into
tscircuit:mainfrom
LaoChouPro:fix/global-obj-loader-cache-key

Conversation

@LaoChouPro
Copy link
Copy Markdown

Fixes duplicate OBJ/WRL model cache misses when otherwise identical model URLs include different cachebust_origin values.

The fetch URL is preserved, but the cache key is normalized by removing cachebust_origin. This lets repeated models share the same in-flight promise or parsed result instead of fetching and parsing again.

Verification:

  • npx bun test tests/use-global-obj-loader-cache-key.test.ts
  • npm run format:check
  • npm run build
  • npm run test:node-bundle

Note: npx bun test currently has unrelated baseline failures in outline-bounds and preprocess-circuit-json; I verified the same failures on HEAD~1.

/claim #93

@vercel
Copy link
Copy Markdown

vercel Bot commented May 21, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
3d-viewer Ready Ready Preview, Comment May 21, 2026 11:05am

Request Review

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant