Skip to content

fix: version viewer assets to avoid stale inspector scripts - #18

Merged
isConic merged 1 commit into
mainfrom
fix/inspector-static-cache
Oct 7, 2026
Merged

isConic merged 1 commit into
mainfrom
fix/inspector-static-cache

Conversation

@isConic

@isConic isConic commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

Existing browsers could reuse the pre-inspector esip-contract.js after a deployment because the map referenced an unversioned URL. Station clicks then continued opening the embedding app’s layer editor even though the current server supplied chart metadata and inspector code.

Add content fingerprints to all MC2-owned viewer JavaScript and CSS URLs, and require revalidation of the map HTML. This keeps each map page paired with the current interaction code while retaining stable URLs for unchanged assets and preserving reverse-proxy path prefixes.

Validation: 6 browser tests pass, including a real Chromium HTTP-cache regression that first reproduces the failure using the previous contract, then opens the inspector with versioned URLs in the same browser context. Also passed 9 API/hash checks and the 2 existing root-path checks. No EOGPT computation or interruption behavior changes.

@isConic
isConic merged commit 1803f73 into main Oct 7, 2026
3 checks passed
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