From c16b3882ac2e96854ad47d2841cd3b7fd1f95943 Mon Sep 17 00:00:00 2001 From: Eric Covener Date: Tue, 1 Oct 2024 10:53:50 -0400 Subject: [PATCH] simplify and differentiate examples The preferred algorithm value was the syntax, not a valid value. It's also relatively obscure function. Simplify the examples and make the content-type one dedicated in a third example. --- .../2020-04-22-http-response-compression.adoc | 22 +++++++++++++------ 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/posts/2020-04-22-http-response-compression.adoc b/posts/2020-04-22-http-response-compression.adoc index 37231ddb77..0f23754e06 100644 --- a/posts/2020-04-22-http-response-compression.adoc +++ b/posts/2020-04-22-http-response-compression.adoc @@ -87,10 +87,7 @@ Configuring compression for individual HTTP endpoints: - - +application/* - -text/plain - + ---- @@ -110,11 +107,22 @@ Configuring compression for all HTTP endpoints: compressionRef="myCompressionID"> - + +---- + +The `types` attribute in the following example adds all application content types and removes the `text/plain` content type from the `text/*` default. + +[source,xml] +---- + + +application/* -text/plain - + + ---- -The `types` attribute in the examples adds all application content types and removes the `text/plain` content type from the `text/*` default. + With this new `` configuration option, you can configure Open Liberty to compress HTTP responses before returning them to clients. This reduces bandwidth and the time taken for HTTP clients to get responses.