File: README

package info (click to toggle)
trafficserver 9.2.5%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 53,008 kB
  • sloc: cpp: 345,484; ansic: 31,134; python: 24,200; sh: 7,271; makefile: 3,045; perl: 2,261; java: 277; pascal: 119; sql: 94; xml: 2
file content (30 lines) | stat: -rw-r--r-- 1,037 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
What this plugin does:

=====================
this plugin compresses responses, via gzip or brotli, whichever is applicable
it can compress origin responses as well as cached responses

installation:
make && sudo make install

if no makefile is present, you can compile it using
    tsxs -o compress.so *.cc
and then install it using
    tsxs -i -o compress.so

after installation, add a line to plugin.config:
compress.so

in this case, the plugin will use a default behaviour:
- use caching
- compress text/* for every origin
- don't hide accept encoding from origin servers (for an offloading reverse proxy)
- no urls are disallowed from compression

alternatively, a configuration can also be specified:
compress.so <path-to-config>/sample.compress.config

after modifying plugin.config, restart traffic server (sudo traffic_ctl server restart)
the configuration is re-read when a management update is given (sudo traffic_ctl config reload)

See sample.config.compress for an example configuration and the options that are available