开发者社区> 问答> 正文

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

已解决

展开
收起
游客vq7pxdx6hymxo 2018-03-03 12:50:44 1220 0
1 条回答
写回答
取消 提交回答
  • 采纳回答

    详细解答可以参考官方帮助文档

    建议排查是否开启了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.

    2018-03-08 12:04:40
    赞同 展开评论 打赏
问答分类:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
构建智能化的视频系统 阿里云CDN的进化 立即下载
CDN数据化实践 立即下载
直播CDN-X - 白山直播CDN流传递链路优化 立即下载