From 785f6a36bf79476b87cf46ab817d5cfdecaba7be Mon Sep 17 00:00:00 2001 From: Svilen Markov <7613769+svilenmarkov@users.noreply.github.com> Date: Tue, 27 Aug 2024 17:29:31 +0100 Subject: [PATCH] Increase assets cache time --- internal/glance/glance.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 != "" {