Fix html rendering

This commit is contained in:
Florian Hoss 2023-07-05 11:41:13 +02:00
parent be890e2e75
commit 1629523d84
7 changed files with 56 additions and 4 deletions

View file

@ -4,6 +4,13 @@ import (
"github.com/labstack/echo/v4"
)
func longCacheLifetime(next echo.HandlerFunc) echo.HandlerFunc {
return func(c echo.Context) error {
c.Response().Header().Set(echo.HeaderCacheControl, "public, max-age=31536000")
return next(c)
}
}
func authHeader(next echo.HandlerFunc) echo.HandlerFunc {
return func(c echo.Context) error {
c.Response().Header().Set("Remote-Groups", c.Request().Header.Get("Remote-Groups"))