mirror of
https://github.com/teamhanko/hanko.git
synced 2025-10-26 21:57:14 +08:00
17 lines
303 B
Go
17 lines
303 B
Go
package middleware
|
|
|
|
import (
|
|
"github.com/labstack/echo/v4"
|
|
)
|
|
|
|
func CacheControlMiddleware() echo.MiddlewareFunc {
|
|
return func(next echo.HandlerFunc) echo.HandlerFunc {
|
|
return func(c echo.Context) error {
|
|
|
|
c.Response().Header().Set(echo.HeaderCacheControl, "no-store")
|
|
|
|
return next(c)
|
|
}
|
|
}
|
|
}
|