Why this matters
Avoids repeated allocations from immutable string concatenation.
Use StringBuilder for many concatenations in loops or when building large strings.
Avoids repeated allocations from immutable string concatenation.
Side-by-side examples engineers can pattern-match during review.
var s = ""; foreach (var x in items) s += x;var sb = new StringBuilder(); foreach (var x in items) sb.Append(x); var s = sb.ToString();s += partsb.Append(part)From the same buckets as this rule.
All static JS/CSS/font/image files MUST use content-hashed filenames (e.g., app.9c1a7b.js) and be served with "Cache-Control: public, max-age=31536000, immutable". HTML and other non-fingerprinted documents MUST be served with "Cache-Control: no-cache" (or equivalent) to enable conditional revalidation.