tomayac opened a new issue #1975: Only serves Brotli when `Accept-Encoding` 
header demands it exclusively
URL: https://github.com/apache/incubator-pagespeed-mod/issues/1975
 
 
   Chrome sends the following `Accept-Encoding` header: `accept-encoding: gzip, 
deflate, br`. This leads mod-pagespeed to serve `gzip` instead of `br`:
   
   ```bash
   $ curl -I -s -H 'Accept-Encoding: gzip, deflate, br' 
https://blog.tomayac.com/css/main.css | grep content-encoding
   content-encoding: gzip
   ```
   However, when Brotli is requested *exclusively*, then `br` is correctly 
returned: 
   
   ```bash
   $ curl -I -s -H 'Accept-Encoding: br' https://blog.tomayac.com/css/main.css 
| grep content-encoding
   content-encoding: br
   ```
   
   Brotli should probably always be favored if the server *and* the client 
support it, even if for compatibility reasons other additional encoding formats 
are requested by the client.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to