hyperlane-plugin-static-files 22.11.0

A high-performance static file server plugin for the Hyperlane framework with canonicalized path-traversal protection, built-in FileExtension MIME detection, 64-way sharded hot-file cache, precompressed .br/.gz sidecars, ETag/304 conditional validation, RFC 9110 Range 206/416 support, and SPA fallback.
Documentation

hyperlane-plugin-static-files

High-concurrency static asset serving plugin for Hyperlane.

  • Canonicalizes root and requested file paths to block .., %2e%2e, NUL bytes, backslash traversal, dotfiles, and symlink escapes.
  • Uses Hyperlane's built-in FileExtension MIME table with precompressed .br and .gz sidecar negotiation (Vary: Accept-Encoding).
  • 64-way XxHash3_64 sharded bounded hot-file memory cache (Arc<CachedFile>) with ETag (If-None-Match -> 304 Not Modified), RFC 9110 byte Range (206 Partial Content / 416 Range Not Satisfiable), HEAD, directory index, and optional SPA fallback.