How to know when a web page was last updated?

HtmlUpdates

Html Problem Overview


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

Html Solutions


Solution 1 - Html

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.

Solution 2 - Html

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.

Solution 3 - Html

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.

Solution 4 - Html

Take a look at archive.org

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

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionGauravView Question on Stackoverflow
Solution 1 - HtmlWassim AZIRARView Answer on Stackoverflow
Solution 2 - HtmlspoulsonView Answer on Stackoverflow
Solution 3 - HtmlJSBձոգչView Answer on Stackoverflow
Solution 4 - HtmlZararsizView Answer on Stackoverflow