techniques
SSG (Static Site Generation)
Pre-rendering pages at build time to static HTML — fastest possible TTFB, perfect AI-crawlability.
Definition
Static Site Generation pre-renders pages to static HTML at build time (deploy time). The pre-rendered HTML is served directly from CDN edge with no server execution per request. Result: sub-100ms TTFB, perfect Core Web Vitals headroom, and complete content visibility to AI crawlers.
Example
Next.js generateStaticParams + dynamicParams=false. Astro static mode. Each page baked once at build, served forever from edge.How to optimize
Use SSG for marketing pages, blog posts, documentation, landing pages. Pages that need fresh data: use ISR (incremental static regeneration).