Unverified Commit 04d7ba48 authored by boojack's avatar boojack Committed by GitHub

chore: remove default gzip middleware

parent 920b0f64
...@@ -35,9 +35,7 @@ func (*FrontendService) Serve(_ context.Context, e *echo.Echo) { ...@@ -35,9 +35,7 @@ func (*FrontendService) Serve(_ context.Context, e *echo.Echo) {
} }
// Route to serve the assets folder without HTML5 fallback. // Route to serve the assets folder without HTML5 fallback.
e.Group("/assets").Use(middleware.GzipWithConfig(middleware.GzipConfig{ e.Group("/assets").Use(func(next echo.HandlerFunc) echo.HandlerFunc {
Level: 5,
}), func(next echo.HandlerFunc) echo.HandlerFunc {
return func(c echo.Context) error { return func(c echo.Context) error {
c.Response().Header().Set(echo.HeaderCacheControl, "max-age=31536000, immutable") c.Response().Header().Set(echo.HeaderCacheControl, "max-age=31536000, immutable")
return next(c) return next(c)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment