From 7250b8e9f00f27dbca0971f421e26cb1bbb90da5 Mon Sep 17 00:00:00 2001 From: Rodrigo Delduca <46259+skhaz@users.noreply.github.com> Date: Thu, 16 Nov 2023 21:02:29 -0300 Subject: [PATCH] Work in progress --- main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.go b/main.go index e4c6b3f..5bd8973 100644 --- a/main.go +++ b/main.go @@ -212,6 +212,8 @@ func indexHandler(c echo.Context) error { } func favIconHandler(c echo.Context) error { + c.Response().Header().Set("Cache-Control", "public, max-age=31536000, s-maxage=31536000") + c.Response().Header().Set("Expires", time.Now().AddDate(1, 0, 0).Format(http.TimeFormat)) return c.Blob(http.StatusOK, "image/x-icon", []byte{}) }