feat: Prerender the homepage, update HTML cache control, and inline critical CSS for improved performance.

This commit is contained in:
Ben
2026-03-08 20:01:47 -07:00
parent de4fa5ba85
commit c006971cbe
3 changed files with 23 additions and 1 deletions

View File

@@ -13,7 +13,7 @@ const MIME_TYPES: Record<string, string> = {
'.otf': 'font/otf'
};
const HTML_CACHE_CONTROL = 'public, max-age=0, must-revalidate';
const HTML_CACHE_CONTROL = 'public, max-age=0, s-maxage=3600, stale-while-revalidate=86400';
const IMMUTABLE_ASSET_CACHE_CONTROL = 'public, max-age=31536000, immutable';
const ASSET_404_CACHE_CONTROL = 'no-store';
const LONG_CACHE_EXTENSIONS = new Set([