简体   繁体   中英

Enable Brotli Compression on cloudfront

I have an angular 4 production build deployed on cloudfront. For compression i have enabled gzip compression on the server. I want to enable brotli compression on cloudfront for each requested resource.

I am already sending the gzip br headers as shown in image below:

在此处输入图片说明

How to configure brotli compression on cloudfront?

You will have to handle this on your origin server, CloudFront is gzip only.

If your origin sends a Content-Encoding header CloudFront should not gzip it.

See the docs .

CloudFront now supports Brotli compression. CloudFront includes 'br' in the normalized 'Accept-Encoding' header before forwarding it to your origin. If your origin does not handle compression, CloudFront can compress cacheable responses at the edge using Brotli.

See the announcement or docs for specific details.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM