21dc532e

By: Michael Lynch <git@mtlynch.io>

Support range requests for embedded static files

Browsers can request Font Awesome webfonts with byte ranges. The static file wrapper preserved custom modification times but hid the embedded file's Seek method, so range requests failed with messages like "io.File missing Seek method" and deployed logs reported 500s for font files.

Forward Seek and ReadDir through the wrapper so http.FileServer can serve embedded assets normally while keeping stable Last-Modified headers.

Testing:
- ./dev-scripts/run-go-tests
- nix flake check
- dev-scripts/git-hooks/pre-commit

Suite timing

Time to Start Worker time Duration Time to finish
Config 1s 3s 3s 4s
Eval 4s 36s 36s 40s
Build 7s 2m58s 1m48s 1m56s
Test - - - -
Deploy - - - -
Suite 1s 3m38s 1m55s 1m56s

Timeline

0s10s20s30s40s50s1m1m10s1m20s1m30s1m40s1m50s