The README says 'Lambda@Edge for serving Brotli or Gzipped file according to the Content-Encoding header" but it should be the Accept-Encoding header.
It should also be noted that Content-Encoding must be added to the metadata on the .gzip and .br files in the S3 bucket, or added in an origin-response Lambda@Edge event. I also found that awscli did not set the Content-Type on uploaded .br files automatically.
The README says 'Lambda@Edge for serving Brotli or Gzipped file according to the Content-Encoding header" but it should be the Accept-Encoding header.
It should also be noted that Content-Encoding must be added to the metadata on the .gzip and .br files in the S3 bucket, or added in an origin-response Lambda@Edge event. I also found that awscli did not set the Content-Type on uploaded .br files automatically.