80ead178

Author: Michael Lynch <git@mtlynch.io>

Committer: Michael Lynch <mtlynch@noreply.codeberg.org>

Support range requests for embedded static files (#72)

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

Reviewed-on: https://codeberg.org/mtlynch/grosiree/pulls/72

Suite timing

Time to Start Worker time Duration Time to finish
Config 2s 4s 4s 6s
Eval 6s 34s 34s 40s
Build 10s 4m05s 1m38s 1m48s
Test - - - -
Deploy - - - -
Suite 2s 4m44s 1m46s 1m48s

Timeline

0s10s20s30s40s50s1m1m10s1m20s1m30s1m40s