Dev.to
7/19/2026

Dietly serves 850k static food pages on one server
Original: 850k Static Pages on One Server
Short summary
Dietly serves 850k food pages as pre-rendered static HTML delivered via Caddy and Cloudflare, avoiding per-request database and API dependencies. The build system uses sharded paths, content hashes, and stable sitemap dates so incremental rebuilds only touch changed pages. Static delivery keeps browsing cheap even when the database is busy, while search and barcode lookups remain dynamic workloads behind their own limits.
- •850k food pages pre-rendered as static HTML, served via Caddy + Cloudflare
- •Incremental builds use content hashes and stable sitemap dates to avoid unnecessary churn
- •Dynamic API retained for search and barcode lookup; static layer isolates browsing from database pressure
Generated with AI, which can make mistakes.
Is this a good recommendation for you?



