|
423 | 423 | compression may be used. |
424 | 424 | The default value is |
425 | 425 | <code> |
426 | | - text/html,text/xml,text/plain,text/css,text/javascript,application/javascript,application/json,application/xml |
| 426 | + text/html,text/xml,text/plain,text/css, |
| 427 | + text/javascript,application/javascript,application/json,application/xml |
427 | 428 | </code>. |
428 | 429 | If you specify a type explicitly, the default is over-ridden.</p> |
429 | 430 | </attribute> |
|
459 | 460 | Units are in bytes.</p> |
460 | 461 | </attribute> |
461 | 462 |
|
462 | | - <attribute name="gzipLevel" required="false"> |
463 | | - <p>If <strong>compression</strong> is set to "on" or "force" then this |
464 | | - attribute may be used to configure the compression level for gzip |
465 | | - compression. Valid values are <code>-1</code> (default compression) |
466 | | - or <code>1</code> through <code>9</code> where <code>1</code> gives |
467 | | - beset speed and <code>9</code> gives best compression ratio. If not |
468 | | - specified, this attribute defaults to <code>-1</code> (JDK default compression).</p> |
469 | | - </attribute> |
470 | | - |
471 | | - <attribute name="gzipBufferSize" required="false"> |
472 | | - <p>If <strong>compression</strong> is set to "on" or "force" then this |
473 | | - attribute may be used to configure the internal buffer size (in bytes) |
474 | | - for the gzip compression stream. Larger buffers can improve compression |
475 | | - ratios and throughput for bulk responses, while smaller buffers reduce |
476 | | - latency for streaming scenarios. If not specified, this attribute |
477 | | - defaults to <code>512</code> bytes. </p> |
478 | | - </attribute> |
479 | | - |
480 | | - <attribute name="noCompressionEncodings" requried="false"> |
| 463 | + <p>Advanced gzip settings such as compression level and internal buffer |
| 464 | + size are configured via a nested |
| 465 | + <code><OutputFilterFactory></code> element inside the |
| 466 | + <code><Connector></code> |
| 467 | + when <strong>compression</strong> is enabled.</p> |
| 468 | + <pre> |
| 469 | + <Connector ... compression="on"> |
| 470 | + <OutputFilterFactory |
| 471 | + className="org.apache.coyote.http11.filters.GzipOutputFilterFactory" |
| 472 | + level="-1" |
| 473 | + bufferSize="512"/> |
| 474 | + </Connector> |
| 475 | + </pre> |
| 476 | + |
| 477 | + <attribute name="noCompressionEncodings" required="false"> |
481 | 478 | <p>A comma-separated list of content encodings that indicate |
482 | 479 | already-compressed content. When the response already has a |
483 | 480 | <code>Content-Encoding</code> header with one of these values, compression |
484 | 481 | will not be applied to prevent double compression. This attribute is only |
485 | 482 | used if <strong>compression</strong> is set to <code>on</code> or |
486 | 483 | <code>force</code>.</p> |
487 | 484 | <p>If not specified, the default values is |
488 | | - <code>br,compress,dcb,dcz,deflate,gzip,pack2000-gzip,zstd</code>, which |
| 485 | + <code>br,compress,dcb,dcz,deflate,gzip,pack200-gzip,zstd</code>, which |
489 | 486 | includes all commonly used compression algorithms. This can be customized |
490 | 487 | to support custom compression algorithms when using a custom |
491 | 488 | <code>outputFilterFactory</code>.</p> |
|
683 | 680 | used.</p> |
684 | 681 | </attribute> |
685 | 682 |
|
686 | | - <attribute name="noCompressionEncodings" requried="false"> |
| 683 | + <attribute name="noCompressionEncodings" required="false"> |
687 | 684 | <p>A comma-separated list of content encodings that indicate |
688 | 685 | already-compressed content. When the response already has a |
689 | 686 | <code>Content-Encoding</code> header with one of these values, compression |
690 | 687 | will not be applied to prevent double compression. This attribute is only |
691 | 688 | used if <strong>compression</strong> is set to <code>on</code> or |
692 | 689 | <code>force</code>.</p> |
693 | 690 | <p>If not specified, the default values is |
694 | | - <code>br,compress,dcb,dcz,deflate,gzip,pack2000-gzip,zstd</code>, which |
| 691 | + <code>br,compress,dcb,dcz,deflate,gzip,pack200-gzip,zstd</code>, which |
695 | 692 | includes all commonly used compression algorithms.</p> |
696 | 693 | </attribute> |
697 | 694 |
|
|
0 commit comments