Skip to content

Deduplicate OBJ loader cache across cachebust_origin query variants#880

Open
daiquydev wants to merge 3 commits into
tscircuit:mainfrom
daiquydev:fix/obj-cache-normalize-93
Open

Deduplicate OBJ loader cache across cachebust_origin query variants#880
daiquydev wants to merge 3 commits into
tscircuit:mainfrom
daiquydev:fix/obj-cache-normalize-93

Conversation

@daiquydev
Copy link
Copy Markdown

Fixes #93

useGlobalObjLoader keyed the in-memory cache by the raw URL. EasyEDA model URLs often include cachebust_origin=..., so identical OBJ files were parsed repeatedly when components only differed by that query parameter.

  • Add
    ormalizeObjCacheUrl() to strip cachebust_origin for stable cache keys (still fetch using the original URL).
  • Add unit tests for the normalizer.

/claim #93

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 12, 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 12, 2026 4:18pm

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.

Improve 3d model loading to avoid laggy browser

1 participant