Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: web server compression #9287

Merged
merged 1 commit into from
May 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions changelog/unreleased/enhancement-web-server-compression.md
Original file line number Diff line number Diff line change
@@ -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 change: 1 addition & 0 deletions services/web/pkg/server/http/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down