html - 通过网络浏览器获得文档的“最后修改”日期
问题描述
如果您在网络浏览器上检查文档(例如 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="">
我的问题是:这个“最后修改”日期是指在加载到网站之前最后一次更改文档的时间,还是指将文档加载到网站的时间?
谢谢,最好
解决方案
来自Mozilla:
Last-Modified 响应 HTTP 标头包含源服务器认为资源上次修改的日期和时间。
推荐阅读
- javascript - 节点 process.timezone 未设置
- regex - 如何在包含 Vlookup、Filter 和 RegexMatch 的公式中使用 ArrayFormula
- javascript - 使用 Moment 验证 MMDDYYYY 格式
- c# - 将大文件发布到 REST Endpoint c# .net core
- mongodb - 如何在 mongo 脚本中使用 ansible playbook 中的变量?
- mysql - 重写 Excel 公式以在 mySQL 中运行
- html - 两个按钮之间的圆圈 - 仅使用 CSS 在一个上显示半圈,在另一个上显示半圈
- google-api - 如何使用客户端 ID 实时过滤来自谷歌分析的数据?
- python - Python:迭代一个月内的所有日子
- c# - 转换 IEnumerable
列出