Merge pull request #9287 from owncloud/feat/web-server-compression
feat: web server compression
This commit is contained in:
@@ -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
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user