diff --git a/main.go b/main.go index 4ae591d..362896a 100644 --- a/main.go +++ b/main.go @@ -32,6 +32,10 @@ func main() { }, })) app.Use("/static", filesystem.New(filesystem.Config{ + Next: func(c *fiber.Ctx) bool { + c.Response().Header.Add("Cache-Control", "public,max-age=2592000") + return false + }, Root: http.FS(static.GetFiles()), }))