On Sun, Jan 28, 2018 at 10:18:30AM +0100, Thuban wrote: > > > Yes it's possible. Make sure to set the appriopriate HTTP headers aswell > > with relayd: read "Accept-Encoding" and if it's acceptable set > > "Content-Encoding". > > Indeed, it works. > > relayd.conf : > > match response header "Accept-Encoding" value "gzip"
This should be: match request header "Accept-Encoding" value "*gzip*" I think. It should only output gzip if it's an accepted encoding, else some clients break. > match response header set "Content-Encoding" value "gzip" > > Then : > > cd /var/www/htdocs/site > gzip style.css && mv style.css.gz style.css > > Now, open URL pointing to style.css, and here you go. > > However, all your files must be gzipped, or the browser is unhappy. > > Thanks a lot. > You're welcome :) -- Kind regards, Hiltjo

