如何知道网页上次更新的时间? [英] How to know when a web page was last updated?

查看:130
本文介绍了如何知道网页上次更新的时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何检测别人的网页何时上次更新(或已更改)?

How can you detect when somebody else's web page was last updated (or was changed)?

推荐答案

上次更改的时间假定Web服务器提供准确的信息。动态生成的页面可能会返回查看页面的时间。但是,静态页面预计会反映实际的文件修改时间。

The last changed time comes with the assumption that the web server provides accurate information. Dynamically generated pages will likely return the time the page was viewed. However, static pages are expected to reflect actual file modification time.

这是通过HTTP标头传播的 Last-Modified 。 AZIRAR的JavaScript技巧非常聪明,并会显示此值。此外,在Firefox中,工具 - >页面信息也将显示在修改字段中。

This is propagated through the HTTP header Last-Modified. The Javascript trick by AZIRAR is clever and will display this value. Also, in Firefox going to Tools->Page Info will also display in the "Modified" field.

这篇关于如何知道网页上次更新的时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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