最后修改日期何时会显示未来的某个时间? [英] When will a last-modified date indicate some time in the future?

查看:151
本文介绍了最后修改日期何时会显示未来的某个时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

RFC 2616第14.29节说如果最后修改日期在 future 中,它应替换为消息发起日期:


原始服务器绝不能发送比服务器发送消息的时间晚
的Last-Modified日期。 在这种情况下,如果
资源的最后修改将指示
future中的一些时间
,则服务器必须将该日期替换为消息来源
date。


RFC在最后修改日期没有详细说明,表明将来的某些时间。



案例中,资源的最后修改日期是将来的某个时间吗?



什么是示例用例/ scenario我们将来会有资源的最后修改日期吗?

解决方案

它不能提及它,因为它完全是直到服务器如何实现资源。



作为一个原始示例,考虑一个服务于文件系统的服务器,并遇到一个带有未来时间戳的文件。 / p>

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?

解决方案

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.

这篇关于最后修改日期何时会显示未来的某个时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆