Private
Public Access
1
0

dns queries: set cache-control header

This commit is contained in:
2025-02-23 09:48:56 -08:00
parent 962839ed89
commit e6f39f201c
2 changed files with 4 additions and 1 deletions

View File

@@ -288,6 +288,9 @@ func (srv *Server) dnsQueryCounts(c echo.Context) error {
return c.String(http.StatusInternalServerError, err.Error())
}
hdr := c.Response().Header()
hdr.Set("Cache-Control", "s-maxage=30,max-age=60")
return c.JSON(http.StatusOK, data)
}