When will a last-modified date indicate some time in the future?

天涯浪子 提交于 2019-12-13 05:15:15

问题


RFC 2616 Section 14.29 says that if the last modified date is in the future, it should be replaced with the message origination date:

An origin server MUST NOT send a Last-Modified date which is later than the server's time of message origination. In such cases, where the resource's last modification would indicate some time in the future, the server MUST replace that date with the message origination date.

The RFC doesn't elaborate any furthur on last modification dates that would indicate some time in the future.

In what cases will the resource's last modification date be some time in the future?

What's an example use case / scenario where we will have a resource's last modification date in the future?


回答1:


It can't mention it, because it's completely up to the server how resources are implemented.

As a primitive example, consider a server that serves a file system, and encounters a file with a timestamp from the future.



来源:https://stackoverflow.com/questions/17941031/when-will-a-last-modified-date-indicate-some-time-in-the-future

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!