f88846ac
web: serve the static tree through ecore's assets
discoverStyleHref and the bare http.FileServer are sr-ht-ecore's assets package now: one hashed-name pattern, the cache policy the hash implies (immutable for a content-addressed name, an hour for the rest), and a refusal to publish a directory listing of the build. The unhashed fallback survives, but only when static/main.css is really there — an href to a file this deployment does not ship is a 404 per page load, which is what an empty Resolve exists to avoid.
Eugene Blikh <bigbes@gmail.com> — 2026-08-08 19:37:38 UTC
Commit f88846acf59598f9d235819608ba4d9ac7cc26c8 —
view raw patch
Parent(s):
bf7897cd
| File | Status | + | − |
|---|---|---|---|
go.mod
|
M | +1 | -1 |
go.sum
|
M | +2 | |
web/router.go
|
M | +59 | -2 |
web/templates.go
|
M | -25 | |
web/web_test.go
|
M | +58 | -1 |