Documentation unclear: compression
Maintainers usually reply within 1 day
@seshadhri-aswath is already working on this.
Since Aug 18, 2025.
Assessment
This issue has not been assessed yet.
Description
Hi,
I have a few issues with the compression documentation.
It was outlined here: https://openliberty.io/blog/2020/04/22/http-response-compression.html
The actual docs I am referring to: https://openliberty.io/docs/latest/reference/config/compression.html
Here are some enhancements I would like to suggest:
Compression algorithm
currently, we have support for:
- gzip,
- x-gzip,
- deflate,
- zlib,
- identity
Update wish / recommendation
- Please explain each item (I thought deflate is the algorithm used in gz?).
- Mention identity equals no-compression
- Mention zlib is hardly supported by browsers
- Mention zlib has AIX hardware support (has it?)
Future perspective: brotli, lz4 and zstd
Modern browsers will send: Accept-Encoding: gzip, deflate, br, zstd (Firefox, Edge, others).
Please document the small overlap and maybe reference wishlist issues / github RFE issues for br (brotli) and zstd (and maybe lz4).
serverPreferredAlgorithm
This is an attribute, interestingly. Make that information stand out, maybe add an example. Usually server.xml uses tags only, so this is somewhat unexpected.
Luckily, <config onError="fail" /> will make the startup fail.
types
Invalid tags won't fail the start
<config onError="fail" /> will NOT make the startup fail if you accidentally use <type> instead of <types>.
Please mention this explicitly (and why it DOES fail for <serverPreferredAlgorithm>, see above section).
Give examples of configurations
Give an example snipped for the default configuration
combination of no prefix, + and -
What happens if you combine those?
<compression>
<types>text/plain</types>
<types>+text/*</types>
<types>-text/xml</types>
</compression>
What would be the outcome? What takes precedence? What about other combinations?
minGzipSize
This option is not documented
Thanks!
- Dominant language
- No language data
- Stars
- 14
- Forks
- 58
- Avg merge
- 1h 4m
- Merged PRs (30d)
- 21
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from OpenLiberty/docs
-
source mismatchOpen
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
OpenLiberty/docs#8579 ·
Maintainers usually reply within 1 day
-
Jandex extended pathOpen
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
OpenLiberty/docs#8451 · 1 comment ·
Maintainers usually reply within 1 day
-
CVE update for 26.0.0.10Possibly taken @ramkumar-k-9286 claimed this 18 days ago. Open26.0.0.10
OpenLiberty/docs#8563 · 5 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
26.0.0.11
Difficulty 5/5 Over a week Newbie friendliness 25/100
OpenLiberty/docs#8548 ·
Maintainers usually reply within 1 day
-
26.0.0.12
Difficulty 4/5 3-5 days Newbie friendliness 45/100
OpenLiberty/docs#8529 · 1 comment ·
Maintainers usually reply within 1 day