Skip to content

Outfit font and Etags flag#7

Merged
jkyberneees merged 2 commits intomainfrom
feat/outfit-font-and-etag-flag
Mar 12, 2026
Merged

Outfit font and Etags flag#7
jkyberneees merged 2 commits intomainfrom
feat/outfit-font-and-etag-flag

Conversation

@jkyberneees
Copy link
Contributor

No description provided.

- Update default page font from monospace to Outfit (sans-serif) for better readability
- Add enable_etags config flag to make ETag generation optional (default: true)
- Update CheckNotModified() to respect the enable_etags setting
- Update SetCacheHeaders() to conditionally set ETag headers
- Add comprehensive tests for ETag feature flag behavior
- Update config.toml.example with new enable_etags setting and documentation
Embedded assets (style.css, index.html, 404.html) served via
serveEmbedded() and serveNotFound() were missing ETag, Cache-Control,
and Vary headers, preventing conditional request (304) support.

Both paths now emit the same caching headers as the regular disk/cache
path, respecting the enable_etags config flag. Three new tests cover
ETag on/off and Cache-Control max-age for the embedded path.

Landing page updated to reflect full ETag coverage across all assets.
@jkyberneees jkyberneees merged commit 0be7e5d into main Mar 12, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant