Skip to content

package:shelf_static v1.2.0

Latest

Choose a tag to compare

@kevmoo kevmoo released this 16 Oct 22:19
b66665b
  • Fix unhandled FormatException / HTTP 500 error when parsing oversized integer
    values in HTTP Range headers, and ignore suffix ranges that select zero bytes.
  • Truncate microseconds in addition to milliseconds when comparing file
    modification times against If-Modified-Since headers.
  • Replace static, blocking dart:io operations (such as statSync() and
    File.existsSync()) with their asynchronous equivalents. This prevents
    createStaticHandler from blocking the Dart isolate event loop, dramatically
    improving performance for highly concurrent web servers.
  • Add generateETag and maxAge parameters to createStaticHandler and
    createFileHandler to support ETag and Cache-Control headers.
    Default ETags are generated based on file size and modified time.
  • Redesign the listDirectory HTML output to use a modern, responsive table
    layout with inline SVG icons, file sizes, and last modified dates.
  • Require Dart ^3.9.0.