Repository navigation
Minor Changes
- Serve compressible files (HTML, JavaScript, CSS, JSON, SVG, Wasm and other
text types) with Brotli or gzip content coding, as NIP-5A now allows. Copies
are made once per blob on a background worker thread, checked against the
blob's SHA-256, stored next to it inBLOB_CACHE_DIRand counted against
BLOB_CACHE_BYTES. Responses addVary: Accept-Encodingand a separate ETag
per coding; range requests stay uncompressed.BLOB_COMPRESS_MAX_BYTES
(default 16 MiB,0disables) limits which blobs are compressed.
Patch Changes
- Rename the misspelled
RLEAY_SYNC_INTERVALsetting toRELAY_SYNC_INTERVAL.
The old name still works when the new one is unset, and logs a deprecation
warning at startup.
Upgrade Notes
- Compression is on by default. Text-heavy sites typically transfer 50–80% fewer
bytes per uncached file; images, video and woff2 fonts are left as they are.
SetBLOB_COMPRESS_MAX_BYTES=0to turn it off. - Compressed copies (
<sha256>.br,<sha256>.gz) use roughly 20–30% extra
space on top of the text files in the blob cache, withinBLOB_CACHE_BYTES. - Downgrading to 3.8 or earlier requires deleting the
.brand.gzfiles from
BLOB_CACHE_DIRfirst: older versions refuse to start with unexpected cache
entries. - Rename
RLEAY_SYNC_INTERVALtoRELAY_SYNC_INTERVALin your environment when
convenient. See
configuration
and caching.
Validation: type checking, 104 unit tests, and the verified-cache, blob-cache and
verified-network integration suites passed, plus an end-to-end check against a
live nsite.