You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by ml...@apache.org on 2020/01/31 03:39:16 UTC

[trafficserver] branch master updated: Add compressible content-types example and 1Kb min

This is an automated email from the ASF dual-hosted git repository.

mlibbey pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new 72c18f6  Add compressible content-types example and 1Kb min
72c18f6 is described below

commit 72c18f641f3641c8eb67ae79da6bd3e32ab5146b
Author: Miles Libbey <ml...@apache.org>
AuthorDate: Tue Jan 28 18:04:59 2020 -0700

    Add compressible content-types example and 1Kb min
---
 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::