Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Commit

Permalink
Work in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
skhaz committed Nov 17, 2023
1 parent 0579d54 commit 7250b8e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{})
}

Expand Down

0 comments on commit 7250b8e

Please sign in to comment.