Replies: 8 comments
-
|
Gist with a potential implementation for this feature request: https://gist.github.com/CJEnright/bc2d8b8dc0c1389a9feeddb110f822d7 StackOverflow answer with a similar implementation: https://stackoverflow.com/a/50898293 |
Beta Was this translation helpful? Give feedback.
-
|
Sounds cool @hhromic Keen to write a first draft of implementation that we can discuss? |
Beta Was this translation helpful? Give feedback.
-
|
Okay, I'll try to put sometihng together soon. Thanks for supporting! |
Beta Was this translation helpful? Give feedback.
-
|
Sounds great, thanks ! |
Beta Was this translation helpful? Give feedback.
-
|
Hello @deviantony , @itsconquest , @ncresswell ! After researching I found a very mature (i.e. includes tests) Go library from NYtimes implementing the required functionality already: https://github.com/nytimes/gziphandler I'm putting together a prototype for Portainer and using this library makes it very simple :) So I'm wondering if it is okay to use third-party libraries such as this one? The license of the NYtimes library is |
Beta Was this translation helpful? Give feedback.
-
|
@deviantony thoughts on this? |
Beta Was this translation helpful? Give feedback.
-
|
Sorry missed the notification ! @hhromic it is ok to use third-party libraries yes ! Just make sure that it can be added through go modules. |
Beta Was this translation helpful? Give feedback.
-
|
Created a PR implementing this functionality now. Looking forward for feedback :) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is your feature request related to a problem? Please describe.
There is no way to configure HTTP gzip compression for the internal Portainer server.
Portainer currently is not using HTTP gzip compression:
There is no
Content-Encoding: gzipheader indicating that compression was active.Describe the solution you'd like
I would like a command-line switch to enable HTTP gzip compression for the internal Portainer server, for example
--enable-compression.Additional context
HTTP gzip compression is a standard mechanism to improve peformance by compression text-content transferred between the HTTP server and client. In other software that implements HTTP gzip compression I can easily observe faster loading times within the UI, for example Grafana or Artifactory.
It looks like the Go's http package does support compression already, so it should not be that complicated to bring to Portainer.
Beta Was this translation helpful? Give feedback.
All reactions