CloudFront有些文件未被 Gzip 压缩。

0

【以下的问题经过翻译处理】 今天我们发现一些文件(不是全部)没有被gzip压缩,尽管客户端请求gzip版本。

以下是两个例子,一个是gzip压缩的,另一个则没有。这两个文件位于同一个桶中,来自同一个源,具有相同的属性。

gzip压缩的:https://js.chatservice.co/v0/tracker.js

没有gzip压缩的:https://js.chatservice.co/v0/click-chat.js

Cloudfront的Compress Objects Automatically设置为Yes。

我们不确定下一步应该检查什么才能将所有文件gzip压缩。

profile picture
EXPERT
asked 6 months ago26 views
1 Answer
0

【以下的回答经过翻译处理】 “CloudFront会确定文件是否可压缩:…文件大小必须在1,000到10,000,000字节之间。”

此外,根据缓存设置,请勿忘记在测试之间使其失效。

profile picture
EXPERT
answered 6 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions