Why this matters
Prevents leaks of streams, handles, and sockets.
Wrap IDisposable resources in using/await using to ensure deterministic disposal.
Prevents leaks of streams, handles, and sockets.
Side-by-side examples engineers can pattern-match during review.
var stream = File.OpenRead(path); // no disposeusing var stream = File.OpenRead(path); // use streamnew FileStream(...)using var fs = new FileStream(...)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.