Add version query parameters to CSS URLs to force browsers to fetch
newer versions after edits. This ensures users see updated styles
without manually clearing browser cache.
Changes:
- Add ?v=1 to overrides.css and syntax.css URLs
- Document version increment process in AGENTS.md
Implements: bug-9b0a200
Co-Authored-By: Crush <crush@charm.land>
@@ -88,6 +88,12 @@ SOFT_SERVE_DISABLE_RACE_CHECKS=1 go test ./...
go build -o soft ./cmd/soft
```
+#### CSS Cache-Busting
+
+When editing CSS files in `pkg/web/static/`, increment the version query parameter in `pkg/web/templates/base.html`:
+- `overrides.css?v=1` → `overrides.css?v=2`
+- `syntax.css?v=1` → `syntax.css?v=2`
+
### Environment Variables
All configuration can be set via environment variables with the `SOFT_SERVE_` prefix: