Serve stale snapshots while refreshing, with cache windows from the env

This commit is contained in:
dtonon 2026-08-20 16:29:19 +01:00
parent 5329c611b1
commit d4c0192dcf
4 changed files with 52 additions and 19 deletions

View file

@ -6,6 +6,9 @@ PUBLIC_TITLE= # top-bar title; empty falls back to the
PUBLIC_SSR=no
# With SSR on, warm the server cache from client-side navigations (yes/no)
PUBLIC_SSR_WARM=yes
# Snapshot cache windows in seconds: served as is / served stale while refreshing
PUBLIC_SSR_CACHE_FRESH=300
PUBLIC_SSR_CACHE_STALE=21600
PUBLIC_SEARCH=no # yes | no — enable the search box (requires a relay with NIP-50 support)
PUBLIC_LABELS= # comma-separated discussion labels (e.g., bug,feature,question)