Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to know when a web page was last updated?

Tags:

html

updates

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

like image 772
Gaurav Avatar asked Jul 06 '10 19:07

Gaurav


People also ask

Can you tell when a website was last updated?

Start by opening the webpage in your browser. In the address bar, type the following, “javascript:alert(document. lastModified)” after the web page's URL. When you press enter, you will see a popup that displays the latest updated date.

How do you find when a website was published or updated?

Go to google.com and copy-paste the full URL of any web page in the search box and prefix it with the inurl: operator. Step 2. Now go your browser's address bar - press Ctrl+L on a Windows machine or Cmd+L on Mac - and append &as_qdr=y25 to the end of the Google search URL. Press enter again.


2 Answers

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.

like image 112
Wassim AZIRAR Avatar answered Oct 12 '22 04:10

Wassim AZIRAR


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.

like image 26
spoulson Avatar answered Oct 12 '22 04:10

spoulson