Reference

Engineering Notes

Short operational checklists for static hosting, TLS hygiene, and HTTP caching.

1. Strict Cache-Control for Immutable Assets

Versioned stylesheets and scripts can safely use long-lived immutable headers, while HTML documents should revalidate.

location ~* \.(css|js|svg|woff2)$ {
    add_header Cache-Control "public, max-age=604800, immutable";
}

2. Modern TLS Defaults

Prefer TLS 1.3 with AEAD cipher suites and OCSP stapling or short-lived automated certificates to minimize handshake round trips.

ssl_protocols TLSv1.2 TLSv1.3;
ssl_prefer_server_ciphers off;