Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【Q112】如果 http 响应头中 ETag 值改变了,是否意味着文件内容一定已经更改 #113

shfshanyue opened this issue Dec 10, 2019 · 1 comment


Copy link

@shfshanyue shfshanyue commented Dec 10, 2019

No description provided.

@shfshanyue shfshanyue added the http label Dec 10, 2019

This comment has been minimized.

Copy link
Owner Author

@shfshanyue shfshanyue commented Dec 10, 2019

不一定,由服务器中 ETag 的生成算法决定。详见 #112

比如 nginx 中的 etaglast_modifiedcontent_length 组成,而 last_modified 又由 mtime 组成

当编辑文件却未更改文件内容时,或者 touch filemtime 也会改变,此时 etag 改变,但是文件内容没有更改。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.