This is an automated email from the ASF dual-hosted git repository.
zwoop pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new 97fd3f0 Add compressible content-types example and 1Kb min
97fd3f0 is described below
commit 97fd3f06b39007f6c9f2219a1d8eecb79ec8bee6
Author: Miles Libbey <[email protected]>
AuthorDate: Tue Jan 28 18:04:59 2020 -0700
Add compressible content-types example and 1Kb min
(cherry picked from commit 72c18f641f3641c8eb67ae79da6bd3e32ab5146b)
---
doc/admin-guide/plugins/compress.en.rst | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/doc/admin-guide/plugins/compress.en.rst
b/doc/admin-guide/plugins/compress.en.rst
index a355d33..41cf6a6 100644
--- a/doc/admin-guide/plugins/compress.en.rst
+++ b/doc/admin-guide/plugins/compress.en.rst
@@ -76,6 +76,8 @@ With no further options, this will enable the following
default behavior:
* Disable flush (flush compressed content to client).
+* Only objects greater than 1Kb will be compressed
+
Alternatively, a configuration may be specified (shown here using the sample
configuration provided with the plugin's source)::
@@ -216,6 +218,25 @@ might create a configuration with the following options::
[bar.example.com]
enabled false
+ # A reasonable list of content-types that are compressible
+ compressible-content-type text/*
+ compressible-content-type *font*
+ compressible-content-type *javascript
+ compressible-content-type *json
+ compressible-content-type *ml;*
+ compressible-content-type *mpegURL
+ compressible-content-type *mpegurl
+ compressible-content-type *otf
+ compressible-content-type *ttf
+ compressible-content-type *type
+ compressible-content-type *xml
+ compressible-content-type application/eot
+ compressible-content-type application/pkix-crl
+ compressible-content-type application/x-httpd-cgi
+ compressible-content-type application/x-perl
+ compressible-content-type image/vnd.microsoft.icon
+ compressible-content-type image/x-icon
+
Assuming the above options are in a file at
``/etc/trafficserver/compress.config``
the plugin would be enabled for |TS| in :file:`plugin.config` as::