Back to Explore

fastify/fastify-static

GitHub
3 updates · last 90 days1 watchersOpen source

Last release:

@fastify/static is a Fastify plugin for serving static files, designed to be as fast as possible. It lets you mount a filesystem directory under a URL prefix and control options like cache headers, wildcard routing, and directory redirects.

Project status

  • Actively maintained, with recent GitHub activity (last upstream push on 2026-08-06) and multiple recent tagged updates in July 2026.
  • Apparent update cadence is fairly steady, for example v10.1.0 on 2026-07-11, then v10.1.1 and v10.1.2 on 2026-07-22, plus further activity following in early August.

AI summary generated

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • v10.1.2

    v10.1.2 is a security-focused release with CI workflow action pinning to a commit hash. The code diff also introduces a functional change affecting how the `allowedPath` option is evaluated against the request pathname.

    Security
  • v10.1.1

    v10.1.1 is a security release that addresses GHSA-83w8-p2f5-377r. The only other documented change is a README typo fix, but the code diff shows additional security hardening around dot-dot (.. ) path segments and how such requests are rejected.

    Security
  • v10.1.0

    v10.1.0 adds proper cache variation handling for pre-compressed static responses by setting Vary: Accept-Encoding when `preCompressed` is enabled. It also introduces `suppressWarning` and switches option validation errors to structured errors created with `@fastify/error` (custom error codes and types).

    Features