feat: add hashfs for static asset cache busting and live clock
- Add assets package with dev/prod build tags - Dev: serve from filesystem with Cache-Control: no-store - Prod: use hashfs for cache-busting URLs - Add LiveClock component to show SSE connection status - Update templates to use StaticPath for asset URLs
This commit is contained in:
5
assets/assets.go
Normal file
5
assets/assets.go
Normal file
@@ -0,0 +1,5 @@
|
||||
// Package assets provides static file serving with build-tag switching
|
||||
// between live filesystem (dev) and embedded hashfs (prod).
|
||||
package assets
|
||||
|
||||
const DirectoryPath = "assets"
|
||||
Reference in New Issue
Block a user