I was using the classic document.lastRevision script on Yahoo Stores
I'm responsible for. It worked great till a recent server change.
Yahoo switched to Apache servers and also went to compressed and
uncompressed chunking. The result is a comment line you'll see at the
bottom of any Yahoo Store page.
That line reads like: <!-- html111.store.sc5.yahoo.com
uncompressed/chunked Sun Jan 2 16:23:27 PST 2005 -->. You can review
the discussion at
http://www.ystoretools.com/forums/topic.asp?TOPIC_ID=25485&SearchTerms=,chunked
Chunking seems to be intefering with is the accuracy of the Apache
server's HTTP header's Last-Modified field. I use a JavaScript on many
Yahoo Stores to show the last modified date for each page on the
store. It works by reading that date from the http header sent to the
browser by the server, and using the document.write method to display
that date in the HTML page. But since chunking started, the date is
being reset every day to that day's date.
It does not appear to be possible to fix this using RTML, as I can't
find any way to access a variable that would timestamp the publish
operation from within RTML.
BTW, this is a Yahoo specific problem, although the odds of getting
them to admit it are infintesimally small. I use the same JS on
numerous Apache servers outside the Yahoo realm, and it works just
fine on all of them.
If anyone wonders, here's the script:
<SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript">
<!-- Hide from old browsers
var m = "Last revision: " + document.lastModified;
var p = m.length-8;
document.write(m.substring(p, 0));
// End --> </SCRIPT> |