How to know when a web page was last updated?

2019-01-30 17:47发布

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

标签: html updates
4条回答
一纸荒年 Trace。
2楼-- · 2019-01-30 18:07

Take a look at archive.org

You can find almost everything about the past of a website there.

查看更多
混吃等死
3楼-- · 2019-01-30 18:09

01. Open the page for which you want to get the information.

02. Clear the address bar [where you type the address of the sites]:

and type or copy/paste from below:

javascript:alert(document.lastModified)

03. Press Enter or Go button.

查看更多
Deceive 欺骗
4楼-- · 2019-01-30 18:17

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.

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.

查看更多
ゆ 、 Hurt°
5楼-- · 2019-01-30 18:21

In general, there is no way to know when something on another site has been changed. If the site offers an RSS feed, you should try that. If the site does not offer an RSS feed (or if the RSS feed doesn't include the information you're looking for), then you have to scrape and compare.

查看更多
登录 后发表回答