commit 48502626fcbdc6ecd5b69b6073848766be2ef46e
parent fbe219a287d77fea096917f7262afe2e58712236
Author: David Eisinger <[email protected]>
Date: Thu, 9 Oct 2025 14:47:52 -0400
Add cache busting to login page
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/internal/api.go b/internal/api.go
@@ -337,6 +337,7 @@ func NewHandlerWithConfig(db *DB, cfg HandlerConfig) (http.Handler, error) {
}
}
if html, err := RenderPage("login.html", cfg); err == nil {
+ html = applyCacheBust(html)
w.Header().Set("Content-Type", "text/html; charset=utf-8")
_, _ = w.Write(html)
return