diff --git a/main.go b/main.go index 01dd5cb..10a512f 100644 --- a/main.go +++ b/main.go @@ -3,10 +3,12 @@ package main import ( "autossl/middleware" "autossl/web" + "crypto/md5" "github.com/golang-jwt/jwt/v5" echojwt "github.com/labstack/echo-jwt/v4" "github.com/labstack/echo/v4" etag "github.com/pablor21/echo-etag/v4" + "hash" "net/http" "os" ) @@ -45,7 +47,12 @@ func main() { e.Use(AllowHeadRequestsMiddleware()) // Etag - e.Use(etag.Etag()) + e.Use(etag.WithConfig(etag.Config{ + Weak: true, + HashFn: func(config etag.Config) hash.Hash { + return md5.New() + }, + })) // Start the service e.Logger.Fatal(e.Start(":1323"))