Github user bryancall commented on the issue:

    https://github.com/apache/trafficserver/pull/1557
  
    I am testing out the plugin with this configuration and I am not getting to 
to compress using Brotli:
    
    ```
    [bcall@C02R70EHG8WP-lm ~]$ tail -1 
/usr/local/etc/trafficserver/plugin.config
    gzip.so /usr/local/etc/trafficserver/gzip.config
    
    [bcall@C02R70EHG8WP-lm ~]$ tail -1 /usr/local/etc/trafficserver/remap.config
    map / https://s.yimg.com/
    
    [bcall@C02R70EHG8WP-lm ~]$ cat /usr/local/etc/trafficserver/gzip.config
    # Enforces brotli compression for javascript and css files
    [www.yahoo.com]
    remove-accept-encoding true
    enabled true
    flush true
    supported-algorithms bz
    compressible-content-type text/*
    enforce-brotli *.js
    enforce-brotli *.css
    
    [bcall@C02R70EHG8WP-lm ~]$ curl -H 'Host: s.yimg.com' -H 'accept-encoding: 
br' -s -o /dev/null -D - 
'http://127.0.0.1:8080/zz/combo?/os/stencil/3.1.0/styles-ltr.css&/os/yc/css/bundle.c60a6d54.css'
    HTTP/1.1 200 OK
    Vary: Accept-Encoding
    Last-Modified: Wed, 08 Feb 2017 01:24:18 GMT
    Content-Type: text/css
    Expires: Fri, 03 Feb 2034 01:51:59 GMT
    Cache-Control: max-age=536112000, public
    Date: Wed, 08 Feb 2017 01:24:18 GMT
    Age: 4138271
    Content-Length: 115395
    Via: http/1.0 c1.ycs.bf1.yahoo.com (ApacheTrafficServer [cRs f ]), 
https/1.1 e19.ycpi.cha.yahoo.com (ApacheTrafficServer [cRs f ])
    Server: ATS/7.2.0
    Connection: keep-alive
    ```
    
    



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to