开发者社区> 问答> 正文

文件的ETag标识符消失,是为什么?

文件的ETag标识符消失,是为什么?

展开
收起
保持可爱mmm 2020-03-30 15:08:34 432 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.

    2020-03-30 15:12:15
    赞同 展开评论 打赏
问答地址:
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载