- 1.0.0
- 1.1.6
- 1.2.6
- 2.0.3
- 2.1.0
- 2.2.1
- 2.3.8
- 3.0.0
- 3.0.9
- 3.1.0 (0)
- 3.2.1 (0)
- 3.2.8 (0)
- 3.2.13 (0)
- 4.0.2 (0)
- 4.1.8 (0)
- 4.2.1 (38)
- 4.2.7 (0)
- 4.2.9 (0)
- 5.0.0.1 (0)
- 5.1.7 (0)
- 5.2.3 (1)
- 6.0.0 (0)
- 6.1.3.1 (-1)
- 6.1.7.7 (0)
- 7.0.0 (0)
- 7.1.3.2 (3)
- 7.1.3.4 (0)
- What's this?
This endpoint serves static files from disk using Rack::File.
URL paths are matched with static files according to expected conventions: path, path.html, path/index.html.
Precompressed versions of these files are checked first. Brotli (.br) and gzip (.gz) files are supported. If path.br exists, this endpoint returns that file with a Content-Encoding: br header.
If no matching file is found, this endpoint responds 404 Not Found.
Pass the root directory to search for matching files, an optional index: "index" to change the default path/index.html, and optional additional response headers.
Constants
PRECOMPRESSED = { "br" => ".br", "gzip" => ".gz", "identity" => nil }