Skip to content

v3.9.0

Latest

Choose a tag to compare

@hzrd149 hzrd149 released this 03 Dec 20:52
· 1 commit to master since this release

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 in BLOB_CACHE_DIR and counted against
    BLOB_CACHE_BYTES. Responses add Vary: Accept-Encoding and a separate ETag
    per coding; range requests stay uncompressed. BLOB_COMPRESS_MAX_BYTES
    (default 16 MiB, 0 disables) limits which blobs are compressed.

Patch Changes

  • Rename the misspelled RLEAY_SYNC_INTERVAL setting to RELAY_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.
    Set BLOB_COMPRESS_MAX_BYTES=0 to 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, within BLOB_CACHE_BYTES.
  • Downgrading to 3.8 or earlier requires deleting the .br and .gz files from
    BLOB_CACHE_DIR first: older versions refuse to start with unexpected cache
    entries.
  • Rename RLEAY_SYNC_INTERVAL to RELAY_SYNC_INTERVAL in 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.