shkor.com README: кэширование в Caddy (no-cache для страниц/CSS/JS, неделя для шрифтов)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Simbiot Harness 2026-10-19 10:03:43 +00:00
parent fb4ddff1b3
commit 31383403a1

View file

@ -5,6 +5,7 @@ Static page (`index.html`, `styles.css`, `assets/`) + backend `api.py` (stdlib,
- **Live: https://shkor.com** (since 2026-10-18) — v2 at the root, docroot `/var/www/shkor-com-live` (v2 + legacy team.html/screenshots), Caddy `/etc/caddy/sites/shkor.com.caddy`, apex A → 204.168.232.21 (zone `/etc/bind/zones/db.shkor.com`; www is delegated to namebright). - **Live: https://shkor.com** (since 2026-10-18) — v2 at the root, docroot `/var/www/shkor-com-live` (v2 + legacy team.html/screenshots), Caddy `/etc/caddy/sites/shkor.com.caddy`, apex A → 204.168.232.21 (zone `/etc/bind/zones/db.shkor.com`; www is delegated to namebright).
Old site (nginx on 204.168.138.138, `/var/www/shkor-local`) backed up: `/var/backups/shkor-com/old-shkor-com-site-20261018.tgz` (+ zone, unit, api.py backups there). Old site (nginx on 204.168.138.138, `/var/www/shkor-local`) backed up: `/var/backups/shkor-com/old-shkor-com-site-20261018.tgz` (+ zone, unit, api.py backups there).
Rollback: zone `@` A back to 204.168.138.138, bump serial, `systemctl reload named`. Rollback: zone `@` A back to 204.168.138.138, bump serial, `systemctl reload named`.
Caching (Caddy): pages/CSS/JS `Cache-Control: no-cache` (always revalidated via ETag → 304), fonts `max-age=604800`; without it browsers mixed new HTML with stale CSS after updates (19.10).
- Preview: https://new.shkor.com (noindex) — docroot `/var/www/shkor-com`, Caddy `/etc/caddy/sites/new-shkor.caddy` - Preview: https://new.shkor.com (noindex) — docroot `/var/www/shkor-com`, Caddy `/etc/caddy/sites/new-shkor.caddy`
- Video `assets/simbiot-harness-enterprise-en.mp4` is copied from `out/` at deploy (not committed here) - Video `assets/simbiot-harness-enterprise-en.mp4` is copied from `out/` at deploy (not committed here)
- Backend: `systemd shkor-api` (/opt/shkor-subscribe/api.py) on 127.0.0.1:8097, Caddy proxies `/api/*`; DB `/var/lib/shkor-subscribe/subs.db` - Backend: `systemd shkor-api` (/opt/shkor-subscribe/api.py) on 127.0.0.1:8097, Caddy proxies `/api/*`; DB `/var/lib/shkor-subscribe/subs.db`