Skip to content

Commit

Permalink
(fix) robots cache
Browse files Browse the repository at this point in the history
  • Loading branch information
kevincobain2000 committed Jan 3, 2024
1 parent f6dc7f1 commit ece4b6c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ func SetupRoutes(e *echo.Echo, baseURL string, publicDir embed.FS) {

// /robots.txt
e.GET(baseURL+ROBOTS_FILE, func(c echo.Context) error {
c.Response().Header().Set("Cache-Control", "public, max-age=86400")
return c.String(http.StatusOK, ROBOTS_TXT)
})

Expand Down

0 comments on commit ece4b6c

Please sign in to comment.