View Full Version : SSI Last Mod Date Problem

04-06-2005, 11:34 PM
Can anyone tell me why when I put the javascript command "document.write(document.lastModified)" into a footer file and include it in my index.shtml file I always get todays date and not the last mod date of the index.shtml file? If I place the line in a .html file it works fine, it only goofs up if I use it in a SSI file. Even if I put the command directly into the index.shtml it will not work, but if I change the file name to index.html it does work. I am using IE 6.0 and I think we use IIS 4.0 for our servers. Thanks for any help

04-12-2005, 05:36 AM
Isn't a .shtml file generated on the fly? If so, the date would be correct. A common work around in situations where document.lastModified is problematic is to, Ulp! you guessed it, insert the date when you modify the file.