chore: remove default gzip middleware

pull/4405/head
boojack 2 weeks ago committed by GitHub
parent 920b0f64f2
commit 04d7ba48e5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -35,9 +35,7 @@ func (*FrontendService) Serve(_ context.Context, e *echo.Echo) {
}
// Route to serve the assets folder without HTML5 fallback.
e.Group("/assets").Use(middleware.GzipWithConfig(middleware.GzipConfig{
Level: 5,
}), func(next echo.HandlerFunc) echo.HandlerFunc {
e.Group("/assets").Use(func(next echo.HandlerFunc) echo.HandlerFunc {
return func(c echo.Context) error {
c.Response().Header().Set(echo.HeaderCacheControl, "max-age=31536000, immutable")
return next(c)

Loading…
Cancel
Save