Skip to content

Conversation

@molly-moen
Copy link
Contributor

@molly-moen molly-moen commented Jan 6, 2026

This is a speculative fix to a mysterious error we've been seeing on the v2 preview. Sometimes the starter images fail to load with a non-specific error. I can get the same image to load in one browser and not load on another browser. One level that had failed images last night for me loaded fine this morning. My best guess is there is some caching issue going on since there was a fix to the starter images deployed yesterday afternoon. As a quick, hopeful, fix, I added a cache bust suffix to the level starter assets url to try to get around the issue.

Links

Testing story

I haven't been able to repro this locally, but this change doesn't break anything locally. The v2 preview is still behind a flag, so this is very low risk.

PR Creation Checklist:

  • Tests provide adequate coverage
  • Privacy impacts have been documented
  • Security impacts have been documented
  • Code is well-commented
  • New features are translatable or updates will not break translations
  • Relevant documentation has been added or updated
  • User impact is well-understood and desirable
  • Follow-up work items (including potential tech debt) are tracked and linked

@molly-moen molly-moen marked this pull request as ready for review January 6, 2026 17:35
@molly-moen molly-moen requested a review from a team January 6, 2026 17:35
Copy link
Contributor

@fisher-alice fisher-alice left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Just left a question.

if (url.startsWith('/level_starter_assets/')) {
// We fetch level starter assets from the code.org origin for this environment.
fetchUrl = codeDotOrgOrigin + url;
// Adding a temporary cache bust query parameter to avoid some caching issues with level starter assets.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So we'll remove this in a few days (whether it hopefully helps or not)?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah I think so

@molly-moen molly-moen merged commit 2a0128c into staging Jan 7, 2026
6 checks passed
@molly-moen molly-moen deleted the molly/image-errors branch January 7, 2026 16:42
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.

3 participants