How to enable compression to Lightsail CDN?

0

Hello there, I can't find an option/way to let Lightsail CDN serve compressed JS Files. Is there anything I can/should do?

Thanks

질문됨 2년 전491회 조회
3개 답변
0

Currently Lightsail does not support compression. I'll take this request to the product team for review. Thanks for the feedback.

AWS
답변함 2년 전
0

Lightsail distributions forward requests that have the Accept-Encoding field values "identity" and "gzip".

You can use CloudFront to automatically compress certain types of objects (files) and serve the compressed objects when viewers (web browsers or other clients) support them. Viewers indicate their support for compressed objects with the Accept-Encoding HTTP header. CloudFront can compress objects using the Gzip and Brotli compression formats. When the viewer supports both formats, CloudFront prefers Brotli. -- [1]

Configure Compression -- https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html -- [1]

profile pictureAWS
지원 엔지니어
답변함 2년 전
0

As I understand Lightsail Distribution is not the same thing as Cloudfront. I will dig more about this as seems Cloudfront is more flexible and even always free (within the limits), while Lightsail Distribution is charged after the first 12 months. There is any reason why I should use Lightsail Distribution instead of Cloudfront?

답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠