page updated script

AlanB

New Member
I have been using a simple javascript "page-updated" script on a number of sites for a few years without any problem but recently I have noticed that instead of recording the date and time I saved the page before ftp'ing to the server it now records present date and time and changes everytime you refresh the web page.
Is this a server problem?

the script is

document.write("Page updated: " + document.lastModified );
 

chrishirst

Well-Known Member
Staff member
It's because your "pages" are scripted, probably a CMS of some kind and as such are created at the moment of the request.
 

chrishirst

Well-Known Member
Staff member
CMS = Wordpress, Joomla!, Druplal, SMF, PHPBB or similar.

Scripted = PHP, ASP, ASP.NET, SSI, Perl, Python etc.etc.
 

AlanB

New Member
oh yes I see what you mean.
All my sites are hand coded in html with seperate css pages, no CMS or any other scripts.
 

deadmix

New Member
you can try this alternative tricks if you are not using any CMS :

stevesouders.com/blog/2012/05/22/self-updating-scripts

Goodluck
 
Top