Static hosting checklist
Keep assets local, set long cache headers for immutable files, and let the root document stay easy to replace.
Systems, tools, and working notes
A quiet place for checklists, snippets, and notes that are useful enough to keep close but not large enough to become a full article.
Recent notes
Keep assets local, set long cache headers for immutable files, and let the root document stay easy to replace.
Prefer a small default set: nosniff, same-origin framing, and a clear cache policy for HTML versus assets.
Write down the symptom, the first bad timestamp, the command that confirmed it, and the rollback point.
References
location /assets/ {
expires 30d;
add_header Cache-Control "public, immutable";
}
location = /healthz {
add_header Content-Type text/plain;
return 200 "ok\n";
}
About
This site is intentionally simple: plain HTML, a single stylesheet, no build step, no external scripts, and no remote assets. It can be served directly by Nginx, Caddy, or any static file server.