Build: landing/learn shed eager Monaco+Vega; post-build gate + immutable asset caching

This commit is contained in:
2026-07-02 22:34:24 +03:00
parent fb4b42a1a7
commit 552900dac5
11 changed files with 170 additions and 77 deletions
+10
View File
@@ -0,0 +1,10 @@
# Cloudflare Pages header rules (copied into dist/ by Vite's public/ passthrough).
#
# Everything under /assets/ is content-hashed by the build (JS, CSS, and the
# font files), so it is safe to cache forever — a changed file gets a new URL.
# Without this rule CF Pages serves its default `max-age=14400, must-revalidate`,
# making every returning visitor revalidate multi-MB vendor chunks every 4 hours.
# HTML keeps the platform default (max-age=0, must-revalidate) so deploys
# propagate instantly; icons live at the root un-hashed and keep the default too.
/assets/*
Cache-Control: public, max-age=31536000, immutable