Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #26905

Re: How do we know when a page has been updated

Newsgroups comp.lang.javascript
Subject Re: How do we know when a page has been updated
From "Evertjan." <exxjxw.hannivoort@inter.nl.net>
References <mcfaq0$7f1$1@dont-email.me> <fbf22176-8011-4343-a060-dc4818238a00@googlegroups.com>
Date 2015-02-23 18:04 +0100
Message-ID <XnsA44AB7C8E5FDCeejj99@194.109.133.133> (permalink)

Show all headers | View raw


"Michael Haufe (TNO)" <tno@thenewobjective.com> wrote on 23 feb 2015 in 
comp.lang.javascript:

> On Monday, February 23, 2015 at 7:44:14 AM UTC-6, Tony Johansson wrote:
>> How can I know when a certain page was last updated?

That depends on what you mean by "updated".
  
> Look at document.lastModified
> 
> ...but it will most likely not give you any useful information.

... because serverside coded pages are made anew every time they are called, 
so their document.lastModified, showing the time in the HEAD, is nearly 
server "now".

However, you might get a relyable date/time with the stream of an 
oldfashionned static html file.

-- 
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

Back to comp.lang.javascript | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

How do we know when a page has been updated "Tony Johansson" <johansson.andersson@telia.com> - 2015-02-23 14:43 +0100
  Re: How do we know when a page has been updated Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-02-23 15:46 +0100
  Re: How do we know when a page has been updated "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2015-02-23 08:56 -0800
    Re: How do we know when a page has been updated "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-02-23 18:04 +0100

csiph-web