Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

chore: remove default gzip middleware

boojack04d7ba48e519
diff --git a/server/router/frontend/frontend.go b/server/router/frontend/frontend.go
index 9e5897360..df333bcb7 100644
--- a/server/router/frontend/frontend.go
+++ b/server/router/frontend/frontend.go
@@ -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)