Skip to content

Per-build asset filenames; maplibre chunk grouping - #275

Merged
yorickdewid merged 1 commit into
mainfrom
fix/per-build-asset-names
Jul 25, 2026
Merged

Per-build asset filenames; maplibre chunk grouping#275
yorickdewid merged 1 commit into
mainfrom
fix/per-build-asset-names

Conversation

@yorickdewid

Copy link
Copy Markdown
Contributor

Fixes the module-MIME breakage class: during deploy transitions the static catch-all + edge caching (s-maxage=86400) can poison a chunk URL with HTML per colo for a day; content-based hashes keep those URLs hot across deploys. A per-build id in every asset filename makes each deploy's URLs fresh.

Also restores the dedicated map-library chunk (manualChunks still matched mapbox-gl, dead since #273).

🤖 Generated with Claude Code

A deploy transition can poison a CDN edge entry: the SPA catch-all
answers a missing chunk URL with index.html and the edge caches that
HTML under the .js URL for s-maxage=86400 - breaking module loads for
anyone routed to that colo for up to a day. Content hashes reuse URLs
across deploys, so the poison stays hot. A build id in every filename
gives each deploy fresh URLs and makes poisoned entries unreachable.

Also updates the manualChunks match left behind by the maplibre swap
(mapbox-gl no longer exists), restoring the separate map library chunk.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@yorickdewid
yorickdewid merged commit e11d3b9 into main Jul 25, 2026
4 checks passed
@yorickdewid
yorickdewid deleted the fix/per-build-asset-names branch July 25, 2026 10:34
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