-
fix(www): enable font content hashing and automated preloads (#68)
released this
2026-10-25 21:15:04 +03:00 🤖 Summary:
- Root cause: Font static assets were configured with unhashed
filenames ([name][ext]) while served withCache-Control: immutable, max-age=31536000. This caused Cloudflare edge nodes and client browsers
to permanently cache the older Latin-only font files from Sept 2026
underhttps://www.ermnvldmr.com/ru/static/font/lato-400.woff2,
ignoring the updated Cyrillic glyphs. - Changes:
- Removed explicit
filename: { font: '[name][ext]' }in
packages/rsbuild-config/src/lib/config/rsbuild.tsto enable Rsbuild's
default content-hashed font filenames ([name].[contenthash:8][ext]). - Updated
services/www/rsbuild.config.tsto remove hardcoded unhashed
font preload tags and configure Rsbuild'sperformance.preloadto
automatically discover and emit hashed font<link rel="preload" as="font" crossorigin>tags.
Downloads
- Root cause: Font static assets were configured with unhashed