diff --git a/main.go b/main.go index 3b412b4..1fc2862 100644 --- a/main.go +++ b/main.go @@ -89,6 +89,7 @@ func initRouter() *gin.Engine { r.SetHTMLTemplate(template.Must(template.New("").ParseFS(tmpl, "templates/*.html"))) r.Any("/static/*filepath", func(c *gin.Context) { + c.Header("Cache-Control", "max-age=3153600") staticServer := http.FileServer(http.FS(assets)) staticServer.ServeHTTP(c.Writer, c.Request) })