Skip to content

A self-hosted dashboard that puts all your feeds in one place

Increase assets cache time

Svilen Markov785f6a36bf79
diff --git a/internal/glance/glance.go b/internal/glance/glance.go
index 628b546..a8485f2 100644
--- a/internal/glance/glance.go
+++ b/internal/glance/glance.go
@@ -277,7 +277,7 @@ func (a *Application) Serve() error {
mux.Handle(
fmt.Sprintf("GET /static/%s/{path...}", a.Config.Server.AssetsHash),
- http.StripPrefix("/static/"+a.Config.Server.AssetsHash, FileServerWithCache(http.FS(assets.PublicFS), 8*time.Hour)),
+ http.StripPrefix("/static/"+a.Config.Server.AssetsHash, FileServerWithCache(http.FS(assets.PublicFS), 24*time.Hour)),
)
if a.Config.Server.AssetsPath != "" {