diff --git a/changelog/unreleased/enhancement-web-server-compression.md b/changelog/unreleased/enhancement-web-server-compression.md new file mode 100644 index 00000000000..c4e2ecb5ac7 --- /dev/null +++ b/changelog/unreleased/enhancement-web-server-compression.md @@ -0,0 +1,6 @@ +Enhancement: Web server compression + +We've added a compression middleware to the web server to reduce the request size when delivering static files. This speeds up loading times in web clients. + +https://github.com/owncloud/ocis/pull/9287 +https://github.com/owncloud/web/issues/7964 diff --git a/services/web/pkg/server/http/server.go b/services/web/pkg/server/http/server.go index 012c3ccf41d..bc8bed9af18 100644 --- a/services/web/pkg/server/http/server.go +++ b/services/web/pkg/server/http/server.go @@ -99,6 +99,7 @@ func Server(opts ...Option) (http.Service, error) { svc.Middleware( chimiddleware.RealIP, chimiddleware.RequestID, + chimiddleware.Compress(5), middleware.NoCache, webmid.SilentRefresh, middleware.Version(