website last updated when?

Started by
3 comments, last by AndreTheGiant 20 years, 6 months ago
Is there some kind of standard or universal way to determine when a specific web page was last updated/modified? I am currently relying on the webmasters to have something near the bottom of the page that says "last updated 22/10/03" or something. Which not many webpages have. I want to know if there is a better way to determine this without relying on the webmaster telling you. Like some sort of way to tell when the file was last saved, much like how windows has a "last modified" info associated with each file. I dont care what language it takes, as long as it is possible. Java, &#106avascript, vbscript, perl, c, whatever.
Advertisement
Yea, I agree, this is an excellent question! I hope someone answeres it soon...
HTTP response headers include the Last-Modified field.
Any language capable of using sockets somehow is able to read this field.
By "somehow" i mean requesting some data from the server on protocol level.

-Nik

EDIT:
Note that server software determines this value, and it may not exactly reflect the actual file update time, even though on static content it often does.

[edited by - Nik02 on October 22, 2003 4:01:54 PM]

Niko Suni

quote:Yea, I agree, this is an excellent question! I hope someone answeres it soon...


Psycho?!?
As mentioned, the HTTP protocol gas the Last-Modified header, that is set by the server in the response on most resources. That does not work, however, on ''dynamic'' documents (such as here at GameDev) as they are generated on the fly, and this header is not set.

There is a plugin for Mozilla Firebird called "Live HTTP Headers", but the plugin provider''s site (www.mozdev.org) seems to be dowd at the moment. Google for it, and get it when it''s available.

This topic is closed to new replies.

Advertisement