Merge pull request #9287 from owncloud/feat/web-server-compression

feat: web server compression
This commit is contained in:
Jannik Stehle
2024-05-31 14:43:29 +02:00
committed by GitHub
2 changed files with 7 additions and 0 deletions
@@ -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
+1
View File
@@ -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(