阿里云CDN加速后源站本来有的etag字段消失了

作者阿里云代理 文章分类 分类:新闻快递 阅读次数 已被围观 1256

建议排查是否开启了cdn的 gzip功能

因为Nginx的默认行为就是这样,同时开启gzip和etag,就直接不用etag了。以下是Nginx文档原文:

The issue was discussed over several forum threads and trackers. It appeared that Nginx deliberately strips ETags once gzip is applied,The motivation behind was that ETag should serve as a byte-accurate comparison, and since the result of gzip is not guaranteed to be identical under different configurations, ETag is no longer a strong validator and Nginx decided that it was simpler to remove it as opposed to converting it to a weak one.

本公司销售:阿里云、腾讯云、百度云、天翼云、金山大米云、金山企业云盘!可签订合同,开具发票。

我有话说: