首页 > 解决方案 > 通过网络浏览器获得文档的“最后修改”日期

问题描述

如果您在网络浏览器上检查文档(例如 pdf),您可以获得文档本身的“最后修改日期”:

<embed id="plugin" type="application/x-google-chrome-pdf" src="http://mywebsite.org/mydocument.pdf" headers="Connection: Keep-Alive Content-Length: 144303 Content-Type: application/pdf Date: Thu, 22 Nov 2018 09:09:44 GMT; Keep-Alive: timeout=6, max=70 Last-Modified: Fri, 9 Nov 2018 09:43:03 GMT Server: Apache X-Content-Type-Option: nosniff " background-color="0xFF525659" top-toolbar-height="56" javascript="allow" full-frame="">

我的问题是:这个“最后修改”日期是指在加载到网站之前最后一次更改文档的时间,还是指将文档加载到网站的时间?

谢谢,最好

标签: htmllast-modified

解决方案


来自Mozilla

Last-Modified 响应 HTTP 标头包含源服务器认为资源上次修改的日期和时间。


推荐阅读