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

Optional GZIP encoding #72

Merged
merged 1 commit into from
Nov 6, 2015
Merged

Optional GZIP encoding #72

merged 1 commit into from
Nov 6, 2015

Conversation

bsideup
Copy link
Member

@bsideup bsideup commented Nov 6, 2015

Hi!

Here, at ZeroTurnaround, we use S3 to serve static websites. Since S3 doesn't support GZIP compression by default, only one option is to set "Content-Encoding: gzip" and gzip files before.

It could be done automatically in plugin as an option, and this pull request implements this logic.

We use fork based on this change and it works fine (but of course additional testing on accepting would be good).

Also, this change will improve old behaviour as well because it will always use an InputStream of a file, and if file is a remote file then it will use a stream without putting it to the temporary file (we still need this temp file for gzipping because we don't want to get some OutOfMemory errors )

Thanks!

@bsideup
Copy link
Member Author

bsideup commented Nov 6, 2015

@ndeloof we would appreciate if you will take a look on it since we want this feature ASAP in a mainstream of plugin so we can switch to it instead of a fork :) Thanks!

ndeloof added a commit that referenced this pull request Nov 6, 2015
@ndeloof ndeloof merged commit e33be15 into jenkinsci:master Nov 6, 2015
@ndeloof
Copy link

ndeloof commented Nov 6, 2015

@bsideup done.
Unrelated, do you know if ZeroTurnaround would consider to be a sponsor for a conference in France ? We were near to get you in 2 years ago but seems policy changed in the meantime :-\

@bsideup
Copy link
Member Author

bsideup commented Nov 6, 2015

@ndeloof thanks for such a fast reaction :)

Contact Simon by using following email: simon at zeroturnaround.com, he will provide you some details on it :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants